mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[ntv] Move app guess outside formats loop
This commit is contained in:
parent
263f4b514b
commit
8f6562448c
@ -125,13 +125,14 @@ def extract(patterns, name, page, fatal=False):
|
||||
'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…
Reference in New Issue
Block a user