aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ntv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-03-28 23:09:56 +0700
committerSergey M․ <dstftw@gmail.com>2014-03-28 23:09:56 +0700
commit8f6562448c7fe1ce6723300ed46c3f51a92c52ac (patch)
tree7ae3cbfa16f138ca6749ccb87d562cc68d36abb5 /youtube_dl/extractor/ntv.py
parent263f4b514b9b90a217152d2ef8fbf5b884b41b5a (diff)
[ntv] Move app guess outside formats loop
Diffstat (limited to 'youtube_dl/extractor/ntv.py')
-rw-r--r--youtube_dl/extractor/ntv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ntv.py b/youtube_dl/extractor/ntv.py
index 29e8f7a04..e998d156e 100644
--- 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,