added format, removed no longer needed script

master
Leo Coogan 3 years ago
parent 1cc33a4f35
commit 3bfaedfb52
No known key found for this signature in database
GPG Key ID: 3D7F617CDE5C9A9B

@ -1,4 +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 -o -iname \*.m4a \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;
find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg -o -iname \*.m4a -o -iname \*.wav \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;

@ -1,5 +0,0 @@
#!/bin/dash
#yt-dl - youtube-dl "magic" download
echo Playlist URL:
read url
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