diff --git a/bin/ffconv-a b/bin/ffconv-a new file mode 100755 index 0000000..d8d0af3 --- /dev/null +++ b/bin/ffconv-a @@ -0,0 +1,4 @@ +#!/bin/dash +# Convert directories and subdirectories from other audio formats to opus +# Public domain, you probably couldn't even copyright a script this short +find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \; diff --git a/bin/yt-dl b/bin/yt-dl index 12d892a..81277fa 100755 --- a/bin/yt-dl +++ b/bin/yt-dl @@ -2,4 +2,4 @@ #yt-dl - youtube-dl "magic" download echo Playlist URL: read url -youtube-dl "$url" --yes-playlist --audio-format flac -x --audio-quality 0 --add-metadata -o "%(title)s.%(ext)s" +youtube-dl "$url" --yes-playlist --audio-format opus -x --audio-quality 0 --add-metadata -o "%(playlist_index)s %(title)s.%(ext)s"