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

Clarify whether --datebefore and --dateafter are inclusive or exclusive #2093

Closed
l0b0 opened this issue Jan 4, 2014 · 2 comments
Closed

Clarify whether --datebefore and --dateafter are inclusive or exclusive #2093

l0b0 opened this issue Jan 4, 2014 · 2 comments

Comments

@l0b0
Copy link

@l0b0 l0b0 commented Jan 4, 2014

According to the README the following command "will only download the videos uploaded between 2000 and 2010":

youtube-dl --dateafter 20000101 --datebefore 20100101

This indicates that --dateafter is inclusive and --datebefore is exclusive. It would be nice if this could be clarified in the documentation. And if this is the case, the former should probably be named --datefrom or --date-from.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 5, 2014

At the moment, both are inclusive. While the names do indeed indicate an exclusive behavior, I'm fine with keeping it as it is. Be aware that the upload date is necessarily imprecise and often missing anyways, so this is more of a heuristic. I'm leaning towards simply documenting the current behavior and changing the example. Any thoughts about that?

@l0b0
Copy link
Author

@l0b0 l0b0 commented Jan 5, 2014

Sounds good. Thanks!

@phihag phihag closed this in bac268e Jan 7, 2014
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.