Last active
September 14, 2017 09:42
-
-
Save PavlosMelissinos/b759bbf3b4b645d2633850d554ebb291 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
filename="$1" | |
while read -r line | |
do | |
OUTPUT_FILENAME_FORMAT="playlists/%(playlist_title)s/%(playlist_index)s - %(title)s.%(ext)s" | |
METADATA_FORMAT="%(artist)s - %(title)s" | |
youtube-dl -i --extract-audio --audio-format mp3 --add-metadata --metadata-from-title "${METADATA_FORMAT}" -o "${OUTPUT_FILENAME_FORMAT}" "${line}" | |
done < "$filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment