Skip to content

Instantly share code, notes, and snippets.

@woochica
Last active October 4, 2023 20:46
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 woochica/9f0b459d054c86431f7627ecf3678042 to your computer and use it in GitHub Desktop.
Save woochica/9f0b459d054c86431f7627ecf3678042 to your computer and use it in GitHub Desktop.
Download songs using youtube-dl
#!/bin/bash
# Download songs from YouTube
target_dir=18
yt2mp3="youtube-dl -x --audio-format mp3"
playlist=(
"Budepesmód Akkezdet Phiai"
"Bang Bang Rock Steady Tomorrow's Children"
"Spying Glass Horace Andy"
"Lovers From Another Time Santana"
"The Hungry Song Chicha Libre"
"The New Victor Dick Dale"
"Six Steps On the Moon Colorstar"
"Cobaka Óperentzia, Dorombal"
"Tar Lucrecia Dalt"
"Golden Crushes Coppe' feat. Luna 9 and Hilothoshi, Coppe', Luna 9, Hilothoshi"
"Ordinary Life Kristen Barry"
"Now Club de Surf"
"Acidic Zone Six"
"No Good (Start the Dance) The Prodigy"
"The Bomb! (These Sounds Fall Into My Mind) Kenny Dope, The Bucketheads"
"You Need The Drugs Westbam/ML, Richard Butler"
)
cd $target_dir
for song in "${playlist[@]}"; do
$yt2mp3 "ytsearch1:${song}"
done
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment