Quellcode durchsuchen

Add function to grab audio from YouTube

...for the love of podcasts!
Alois Mahdal vor 6 Jahren
Ursprung
Commit
6974c19111
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc Datei anzeigen

@@ -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)