0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

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

This commit is contained in:
Sergey M․ 2015-03-09 04:55:35 +06:00
parent cc08b11d16
commit dd7831fe94

View file

@ -41,7 +41,7 @@ def _real_extract(self, url):
'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({