ソースを参照

[YoutubeDL] Allow filtering by audio sampling rate

Sergey M․ 10 年 前
コミット
2ec19e9558
1 ファイル変更1 行追加1 行削除
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -826,7 +826,7 @@ class YoutubeDL(object):
             '!=': 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|fps)
+            (?P<key>width|height|tbr|abr|vbr|asr|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]?)?)
             \]$
             \]$