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

Ability to support calculations in --Match-filter #24358

Closed
kolt54321 opened this issue Mar 15, 2020 · 1 comment
Closed

Ability to support calculations in --Match-filter #24358

kolt54321 opened this issue Mar 15, 2020 · 1 comment
Labels

Comments

@kolt54321
Copy link

@kolt54321 kolt54321 commented Mar 15, 2020

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2020.03.08
  • I've searched the bugtracker for similar feature requests including closed ones

Description

WRITE DESCRIPTION HERE

Can the ability be added to perform calculations on supported keys in --match-filter, where all keys are numeric? For example, if the user would like to filter videos that have a like ratio of over 95%, support for:

  • --match-filter 'like_count/(like_count + dislike_count) > .95'
    or
  • --match-filter 'like_count > dislike_count *95'
@kolt54321 kolt54321 added the request label Mar 15, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 15, 2020

No. If you need more complicated logic than filtering then write a script.

@dstftw dstftw closed this Mar 15, 2020
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.