youtube-dl --get-id https://www.youtube.com/playlist?list=PLyGKBDfnk-iAQx4Kw9JeVqspbg77sfAK0 -i > ids.txt while read id; do youtube-dl -f bestaudio https://www.youtube.com/watch?v=$id done < ids.txt