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

youtube-dl reject based on the length of the movie #25601

Closed
greyboxgt opened this issue Jun 9, 2020 · 3 comments
Closed

youtube-dl reject based on the length of the movie #25601

greyboxgt opened this issue Jun 9, 2020 · 3 comments

Comments

@greyboxgt
Copy link

@greyboxgt greyboxgt commented Jun 9, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I am trying to find a way to reject the download based on the time length of the movie. For example, if the video is longer than 20 minutes, skip it, do not even start downloading.

Thank you.

@greyboxgt greyboxgt added the question label Jun 9, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 9, 2020

--match-filter.

@dstftw dstftw closed this Jun 9, 2020
@dstftw dstftw added the duplicate label Jun 9, 2020
@greyboxgt
Copy link
Author

@greyboxgt greyboxgt commented Jun 9, 2020

What will be the --match-filter to reject movies less than 20 minutes?

@greyboxgt
Copy link
Author

@greyboxgt greyboxgt commented Jun 13, 2020

Here is the answer in case somebody is looking for this:

--match-filter "duration < 1200"

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.