Browse Source

Add function to grab audio from YouTube

...for the love of podcasts!
Alois Mahdal 6 years ago
parent
commit
6974c19111
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc View File

@@ -321,6 +321,14 @@ xvvx() {
321 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 332
 yum_hasbin() {
325 333
     #
326 334
     # Ask yum who has bin $1 (and make the output actually readable)