projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263f4b5
)
[ntv] Move app guess outside formats loop
author
Sergey M․
<dstftw@gmail.com>
Fri, 28 Mar 2014 16:09:56 +0000
(23:09 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 28 Mar 2014 16:09:56 +0000
(23:09 +0700)
youtube_dl/extractor/ntv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ntv.py
b/youtube_dl/extractor/ntv.py
index 29e8f7a04ec8eb63efa3041698123718ffb81181..e998d156e3f43a25adf8c31c8e904d3aa96590d1 100644
(file)
--- a/
youtube_dl/extractor/ntv.py
+++ b/
youtube_dl/extractor/ntv.py
@@
-125,13
+125,14
@@
class NTVIE(InfoExtractor):
'7': 'video2',
}
+ app = apps[puid22] if puid22 in apps else apps['4']
+
formats = []
for format_id in ['', 'hi', 'webm']:
file = video.find('./%sfile' % format_id)
if file is None:
continue
size = video.find('./%ssize' % format_id)
- app = apps[puid22] if puid22 in apps else apps['4']
formats.append({
'url': 'rtmp://media.ntv.ru/%s' % app,
'app': app,