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

Stop operation after "dateafter" videos are downloaded #1502

Open
ghost opened this issue Sep 25, 2013 · 8 comments
Open

Stop operation after "dateafter" videos are downloaded #1502

ghost opened this issue Sep 25, 2013 · 8 comments
Labels

Comments

@ghost
Copy link

@ghost ghost commented Sep 25, 2013

When I use the "dateafter" command to download videos after a certain date, it starts to download the most recent video and then progresses backwards in time to download the first video after the "dateafter" date.

However, it then continues to go through all the videos before the "dateafter" date (although it doesn't download them). I'd like the operation just to stop after downloading the first video after the "dateafter" date.

Would this be possible?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 26, 2013

It would be possible if we knew if the videos are ordered by date, but this is in general false (some are ordered by date of addition to the list or ordered manually)

@ghost
Copy link
Author

@ghost ghost commented Sep 26, 2013

That's a real shame, because it kind of defeats the purpose of my script. Is there a more 'hacky' solution available to make it stop as soon as it stops downloading the videos?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 26, 2013

@KeyMs92 You are welcome to contribute patches that do this optimization, and it is not an infrequent request, so we or anyone else may also be submitting patches to do that.

@viktorlindgren
Copy link

@viktorlindgren viktorlindgren commented Jul 12, 2014

For what I can see, they are ordered when a youtubeuser is chosen. That is good enough for me.

Maybe just add an option to youtube-dl to stop the first time the dateafter is passed? so then it is up to the user to take the risk.

@lazic-st
Copy link

@lazic-st lazic-st commented Jan 2, 2016

As my post issue is closed for no special reason let me explain it here.
YouTube API have two option about time: publish date and upload date
Some Youtubers upload video and wait few days to publish. Youtube order it chronologically by PUBLISH DATE.
Whole script should be changed to use PUBLISH DATE time (I would like to have time and date DDMMYYYY, HH:MM) and then it can stop script after 'upload date is not in range' message.
I already modify script for myself to stop after that message but it still use UPLOAD DATE...

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 2, 2016

@stefanACM This issue is for making the --dateafter option more intelligent to not fetch all the videos info when it's not needed (what you asked for in your issue), please open a new issue for using the publish date instead of the upload date (you didn't talk about that in your issue) and remember to post some example video with the value of both dates.

@Ghost93
Copy link

@Ghost93 Ghost93 commented Aug 30, 2018

Any news about this issue?
Thanks :)

@omeringen
Copy link

@omeringen omeringen commented Feb 12, 2020

Any news about this issue?
Thanks :)

Again, any news ?

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
6 participants
You can’t perform that action at this time.