summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-11 23:18:45 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-11 23:18:45 +0600
commita0977064ce9e79fd55f9da904ae3ae0a502b46c6 (patch)
tree3bec43ecc0fec135e75a04513e220e8dcc83d6b0
parent15aecd871147bcec28b341b334b2e37eaf6cef04 (diff)
downloadyoutube-dl-a0977064ce9e79fd55f9da904ae3ae0a502b46c6.tar.gz
youtube-dl-a0977064ce9e79fd55f9da904ae3ae0a502b46c6.tar.xz
youtube-dl-a0977064ce9e79fd55f9da904ae3ae0a502b46c6.zip
[npo] Fix non asf streams (Closes #4680)
-rw-r--r--youtube_dl/extractor/npo.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index 8da76ae45..47802518d 100644
--- a/youtube_dl/extractor/npo.py
+++ b/youtube_dl/extractor/npo.py
@@ -10,6 +10,7 @@ from ..utils import (
     strip_jsonp,
     url_basename,
     fix_xml_ampersands,
+    determine_ext,
 )
 
 
@@ -125,6 +126,12 @@ class NPOIE(InfoExtractor):
                 stream_url = stream.get('url')
                 if not stream_url:
                     continue
+                if determine_ext(stream_url).lower() != 'asf':
+                    formats.append({
+                        'url': stream_url,
+                        'quality': stream.get('kwaliteit'),
+                    })
+                    continue
                 asx = self._download_xml(
                     stream_url, video_id,
                     'Downloading stream %d ASX playlist' % i,