瀏覽代碼

[breakcom] Process only play purpose media formats (Closes #5164)

Sergey M․ 10 年之前
父節點
當前提交
dd7831fe94
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/breakcom.py

+ 1 - 1
youtube_dl/extractor/breakcom.py

@@ -41,7 +41,7 @@ class BreakIE(InfoExtractor):
             'tbr': media['bitRate'],
             'tbr': media['bitRate'],
             'width': media['width'],
             'width': media['width'],
             'height': media['height'],
             'height': media['height'],
-        } for media in info['media']]
+        } for media in info['media'] if media.get('mediaPurpose') == 'play']
 
 
         if not formats:
         if not formats:
             formats.append({
             formats.append({