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

[Feature request] flag for downloading only new channel videos #17832

Open
jarpoole opened this issue Oct 8, 2018 · 1 comment
Open

[Feature request] flag for downloading only new channel videos #17832

jarpoole opened this issue Oct 8, 2018 · 1 comment

Comments

@jarpoole
Copy link

@jarpoole jarpoole commented Oct 8, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.10.05. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.10.05

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

I am attempting to use youtube-dl to continually download the latest videos from various youtube channels. YouTube-dl will be run daily from cron. Some of the youtube channels I am downloading from have over 1000 videos. YouTube-dl provides an option to download only videos which match the current date ( --date now ) and a robust way to keep track of videos which have already been downloaded ( --download-archive FILE ). The problem is that youtube-dl checks every video it finds on a channel against the archive file to see if it has already been downloaded and against the date to see if it falls in the date range. This process can take hours on a channel like ytuser:LinusTechTips where there are over 4300 videos. To compound the problem, this check happens every time the program is run.

I think the solution is quite simple. YouTube-dl already appears to list videos in chronological order (correct me if this is false). A flag should therefor be provided which stops checking if older videos are in the date range once it encounters a video which is too old.

I have read the documentation thoroughly and cannot come up with a different way to efficiently download only the new videos from a youtube channel. For this reason I think the new feature is needed which would be useful for a lot of users.

@ytdl-org ytdl-org deleted a comment from davidoskky Dec 6, 2018
@ealgase
Copy link
Contributor

@ealgase ealgase commented Dec 12, 2018

If you're just checking against a download archive, it doesn't actually have to download each video webpage. I have a ~8000 video channel downloaded, and after downloading all the channel pages (~2 minutes), all the videos are checked in under a minute.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.