Skip to content

Instantly share code, notes, and snippets.

@cannorin
Created October 10, 2015 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannorin/8beb1efefbff3a5f061e to your computer and use it in GitHub Desktop.
Save cannorin/8beb1efefbff3a5f061e to your computer and use it in GitHub Desktop.
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