aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bliptv.py
diff options
context:
space:
mode:
authorz00nx 0 <z00nx0@gmail.com>2014-01-30 20:44:53 +1100
committerz00nx 0 <z00nx0@gmail.com>2014-01-30 20:44:53 +1100
commit4f879a5be0813ae2c0d756ad52608125117fef58 (patch)
treecde13a489c7cb4f280c6c0f78e28c52d631e5954 /youtube_dl/extractor/bliptv.py
parent1a0648b4a9aa35254b1e9b65cf280e2014e6d317 (diff)
[bliptv] Filter out SRT files
Diffstat (limited to 'youtube_dl/extractor/bliptv.py')
-rw-r--r--youtube_dl/extractor/bliptv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bliptv.py b/youtube_dl/extractor/bliptv.py
index 3ce9b5324..ffe6f89b1 100644
--- a/youtube_dl/extractor/bliptv.py
+++ b/youtube_dl/extractor/bliptv.py
@@ -78,8 +78,8 @@ class BlipTVIE(InfoExtractor):
upload_date = datetime.datetime.strptime(data['datestamp'], '%m-%d-%y %H:%M%p').strftime('%Y%m%d')
formats = []
if 'additionalMedia' in data:
- for f in sorted(data['additionalMedia'], key=lambda f: int(f['media_height'])):
- if not int(f['media_width']): # filter m3u8
+ for f in sorted(data['additionalMedia'], key=lambda f: int(0 if f['media_height'] is None else f['media_height'])):
+ if not int(0 if f['media_height'] is None else f['media_height']): # filter out m3u8 and srt files
continue
formats.append({
'url': f['url'],