projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15aecd8
)
[npo] Fix non asf streams (Closes #4680)
author
Sergey M․
<dstftw@gmail.com>
Sun, 11 Jan 2015 17:18:45 +0000
(23:18 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 11 Jan 2015 17:18:45 +0000
(23:18 +0600)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index 8da76ae45aa3ec012f51d0a3d832f56bd0efe77f..47802518d93b99e3c2c2f3f43e0e6de4169a5b3c 100644
(file)
--- 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,