Created
October 10, 2015 09:51
-
-
Save cannorin/8beb1efefbff3a5f061e 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
album_title="Album Name" | |
album_artist="V. A." | |
album_cover="cover.png" | |
playlist="https://www.youtube.com/playlist?list=y0urp1ay1ist" | |
output_d="/path/to/directory" | |
youtube-dl $playlist -x --audio-format mp3 -o "%(title)s.%(ext)s" -i --download-archive "$album_title.plarchive" | |
mkdir -p "$output_d" | |
for i in *.mp3; do | |
mv "$i" "$output_d"; | |
title=$(echo $i | sed -e "s/.mp3//g"); | |
eyeD3 -a "$album_artist" -A "$album_title" -t "$title" --add-image="$album_cover:FRONT_COVER" "$output_d/$i" & | |
done | |
wait | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment