I would like to download an entire playlist from Youtube but I would also like it NOT to download specific videos from the playlist. I know the link and the name of those videos in advance and can therefore give that information to youtube-dl
So far the best solution I have is downloading the playlist and then running a shell script that removes the unwanted videos. This is obviously very limited ( the video is downloaded each time I try to download the new videos added to the playlist )
Is it possible to ask youtube-dl to ignore specific videos directly by command line or by file ( that would contain the names or urls of the unwanted videos ) ?
Yes.
youtube-dl -ij --flat-playlist "your_playlist" | jq -r '"https://youtu.be/\(.id)"' > listurl.txt
grep -vf unwanted.txt listurl.txt > download.txt
youtube-dl -ia download.txt