mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 20:55:52 +01:00
[YoutubeDL] Allow format filtering by fps
This commit is contained in:
parent
e72c7e4123
commit
9f0df77ab1
@ -820,7 +820,7 @@ def _apply_format_filter(self, format_spec, available_formats):
|
|||||||
'!=': operator.ne,
|
'!=': operator.ne,
|
||||||
}
|
}
|
||||||
operator_rex = re.compile(r'''(?x)\s*\[
|
operator_rex = re.compile(r'''(?x)\s*\[
|
||||||
(?P<key>width|height|tbr|abr|vbr|filesize)
|
(?P<key>width|height|tbr|abr|vbr|filesize|fps)
|
||||||
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
|
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
|
||||||
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
|
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
|
||||||
\]$
|
\]$
|
||||||
|
@ -297,7 +297,7 @@ def _hide_login_info(opts):
|
|||||||
' You can filter the video results by putting a condition in'
|
' You can filter the video results by putting a condition in'
|
||||||
' brackets, as in -f "best[height=720]"'
|
' brackets, as in -f "best[height=720]"'
|
||||||
' (or -f "[filesize>10M]"). '
|
' (or -f "[filesize>10M]"). '
|
||||||
' This works for filesize, height, width, tbr, abr, and vbr'
|
' This works for filesize, height, width, tbr, abr, vbr, and fps'
|
||||||
' and the comparisons <, <=, >, >=, =, != .'
|
' and the comparisons <, <=, >, >=, =, != .'
|
||||||
' Formats for which the value is not known are excluded unless you'
|
' Formats for which the value is not known are excluded unless you'
|
||||||
' put a question mark (?) after the operator.'
|
' put a question mark (?) after the operator.'
|
||||||
|
Loading…
Reference in New Issue
Block a user