Browse Source

[ntv] Move app guess outside formats loop

totalwebcasting
Sergey M․ 11 years ago
parent
commit
8f6562448c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/ntv.py

+ 2
- 1
youtube_dl/extractor/ntv.py View File

@ -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,


Loading…
Cancel
Save