瀏覽代碼

[YoutubeDL] Allow format filtering by fps

Philipp Hagemeister 10 年之前
父節點
當前提交
9f0df77ab1
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      youtube_dl/YoutubeDL.py
  2. 1 1
      youtube_dl/options.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -820,7 +820,7 @@ class YoutubeDL(object):
             '!=': operator.ne,
         }
         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*
             (?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
             \]$

+ 1 - 1
youtube_dl/options.py

@@ -297,7 +297,7 @@ def parseOpts(overrideArguments=None):
             ' You can filter the video results by putting a condition in'
             ' brackets, as in -f "best[height=720]"'
             ' (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 <, <=, >, >=, =, != .'
             ' Formats for which the value is not known are excluded unless you'
             ' put a question mark (?) after the operator.'