1

I have a watch later playlist on YouTube. I both add videos to it and remove watched ones constantly. I use

youtube-dl <playlist_url>

to download the entire playlist into a current folder. The idea is to keep this folder in sync with the playlist, in other words to delete videos from the local folder that are no longer in the playlist. Is there a simple way to do it?

0

Rather than writing it yourself, you can use this script to keep a folder in sync with a playlist:

https://github.com/chewett/youtube-playlist-sync/blob/master/README.md

To set it up you run:

yps.py --init <playlist url> --dir <folder>

To sync you run:

yps.py --sync <folder>
  • Hi, the OP asked about deletion. How can I use this mentioned script to also delete the files locally if they are no longer in the online playlist? – Albert Nov 29 '18 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.