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

Parentheses for meta fields in format selection syntax #25376

Open
po5 opened this issue May 23, 2020 · 1 comment
Open

Parentheses for meta fields in format selection syntax #25376

po5 opened this issue May 23, 2020 · 1 comment
Labels

Comments

@po5
Copy link

@po5 po5 commented May 23, 2020

Checklist

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

Description

Currently, format selection allows doing things like (bestvideo+bestaudio/best)[protocol^=http] which is a handy shortcut for bestvideo+bestaudio[protocol^=http]/best[protocol^=http]

Unfortunately, this is currently only allowed for formats and not meta field filters.

Below is an example of how this would work:
bestvideo[height>=1080][height<1440][fps>30]([vcodec^=av01]/[vcodec=vp9.2]/[vcodec^=vp9])+bestaudio/best
would be equivalent to
(bestvideo[vcodec^=av01][height>=1080][height<1440][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][height<1440][fps>30]/bestvideo[vcodec^=vp9][height>=1080][height<1440][fps>30])+bestaudio/best

@po5 po5 added the request label May 23, 2020
@po5
Copy link
Author

@po5 po5 commented May 23, 2020

Related suggestion which would also solve this #5242 (comment)

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