aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-11 23:45:52 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-11 23:45:52 +0600
commitc85f368370e3e72f65fa1a40f6b6f785b4b2faf6 (patch)
treed669773902621fb489ab3460edfd2588eaa99db0
parenta0977064ce9e79fd55f9da904ae3ae0a502b46c6 (diff)
[npo] Make extension check less strict and add test (#4680)
-rw-r--r--youtube_dl/extractor/npo.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index 47802518d..fcd4fea94 100644
--- a/youtube_dl/extractor/npo.py
+++ b/youtube_dl/extractor/npo.py
@@ -68,6 +68,16 @@ class NPOIE(InfoExtractor):
'skip_download': True,
}
},
+ # non asf in streams
+ {
+ 'url': 'http://www.npo.nl/hoe-gaat-europa-verder-na-parijs/10-01-2015/WO_NOS_762771',
+ 'md5': 'b3da13de374cbe2d5332a7e910bef97f',
+ 'info_dict': {
+ 'id': 'WO_NOS_762771',
+ 'ext': 'mp4',
+ 'title': 'Hoe gaat Europa verder na Parijs?',
+ },
+ },
]
def _real_extract(self, url):
@@ -126,7 +136,7 @@ class NPOIE(InfoExtractor):
stream_url = stream.get('url')
if not stream_url:
continue
- if determine_ext(stream_url).lower() != 'asf':
+ if not '.asf' in stream_url:
formats.append({
'url': stream_url,
'quality': stream.get('kwaliteit'),