Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run on a schedule? #13

Open
dhruvbhutani opened this issue Apr 6, 2020 · 2 comments
Open

Is it possible to run on a schedule? #13

dhruvbhutani opened this issue Apr 6, 2020 · 2 comments

Comments

@dhruvbhutani
Copy link

I want to use this to archive one of my channels to an offsite Synology NAS. Is it possible to set it on a schedule to automatically download the latest uploads?

@hyeonsangjeon
Copy link
Owner

hyeonsangjeon commented Apr 7, 2020

Did you mean, script as like below?
I found channel downloading method that mentioned "How do I download only new videos from a playlist?" at https://github.com/ytdl-org/youtube-dl

While testing this, as you said, it wrote the channel's video address in a file called archive.txt, row by row, then firstly downloaded all of channel video. If run the same command later, it will appear to read the video information in the archive.txt file and download only the new video without it.

It seems to be useful for channel management. Interesting.

  • command
    youtube-dl --download-archive archive.txt https://www.youtube.com/channel/YOUR_CHANNEL

  • for example,
    youtube-dl --download-archive archive.txt https://www.youtube.com/channel/UCmLADXQtWVuzOnOK5TNrWaw

@dhruvbhutani
Copy link
Author

Exactly that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants