-i
- ignore errors
-c
- continue
--extract-audio
- extract audio track
--audio-format mp3
- convert to mp3
--audio-quality 0
- the best audio quality
--yes-playlist
- affirm that url points to a playlist
YT_URL
- video url from youtube
yt-dlp -i --extract-audio --audio-format mp3 --audio-quality 0 YT_URL
yt-dlp -ict --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/playlist?list=UUCvVpbYRgYjMN7mG7qQN0Pg
Download playlist, --download-archive downloaded.txt add successfully downloaded files into downloaded.txt
yt-dlp --download-archive downloaded.txt --no-overwrites -ict --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0 --socket-timeout 5 https://www.youtube.com/playlist?list=UUCvVpbYRgYjMN7mG7qQN0Pg
while ! yt-dlp --download-archive downloaded.txt --no-overwrites -ct --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0 --socket-timeout 5 <YT_PlayList_URL>; do echo DISCONNECTED; sleep 5; done
while ! yt-dlp --download-archive downloaded.txt --no-overwrites -ct --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0 --socket-timeout 5 --embed-thumbnail --add-metadata <YT_PlayList_URL>; do echo DISCONNECTED; sleep 5; done
--embed-thumbnail
--add-metadata
for infos