Bläddra i källkod

Add function to grab audio from YouTube

...for the love of podcasts!
Alois Mahdal 6 år sedan
förälder
incheckning
6974c19111
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc Visa fil

321
     xop oo | vipe | xop ii
321
     xop oo | vipe | xop ii
322
 }
322
 }
323
 
323
 
324
+yt2ogg() {
325
+    #
326
+    # Download YouTube video as vorbis audio
327
+    #
328
+    local url=$1
329
+    youtube-dl -x --audio-format vorbis "$url"
330
+}
331
+
324
 yum_hasbin() {
332
 yum_hasbin() {
325
     #
333
     #
326
     # Ask yum who has bin $1 (and make the output actually readable)
334
     # Ask yum who has bin $1 (and make the output actually readable)