[breakcom] Process only play purpose media formats (Closes #5164)
authorSergey M․ <dstftw@gmail.com>
Sun, 8 Mar 2015 22:55:35 +0000 (04:55 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 8 Mar 2015 22:55:35 +0000 (04:55 +0600)
youtube_dl/extractor/breakcom.py

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