In the light of google cracking down on ad block i want to be pro-active and automatically download new videos to my jelly fin server.

I was thinking off using this tool https://youtube-dl.org/ and writing a small script for it (with help of gpt4) but i am missing any general strategy on when i should trigger it and how to make sure it downloads all of the new videos exactly once.

I am hoping that i am not the first to do this and people can give me some good tips before i put to much work into this project.

  • @[email protected]M
    link
    fedilink
    English
    1
    edit-2
    1 year ago

    I believe there will always be a way to watch these videos ad-free. I can’t imagine they will restructure the video serving infrastructure to force ads in a way that can’t be blocked as there is so many devices and official YouTube clients (gaming consoles, Smart TVs, etc) that would have to be updated. However, I do think they might make it more difficult.

    youtube-dl is the way to go. One thing you could do is keep a text file containing video IDs that you have already downloaded and before downloading a new video and append the new video ID to the list. Another way is you could also set the file name to the video ID to and check if it exists before downloading as well.