Added another script

master
Leo Coogan 3 years ago
parent 4a8db82e26
commit acc745ebab
No known key found for this signature in database
GPG Key ID: B4F9BE9CF7FF8A5C

@ -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"' \;

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

Loading…
Cancel
Save