mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 01:51:06 +00:00
[ARDIE] adjustments suggested by @jaimeMF
This commit is contained in:
parent
e5da4021eb
commit
895ce482b1
1 changed files with 4 additions and 5 deletions
|
@ -59,13 +59,12 @@ def _real_extract(self, url):
|
|||
|
||||
for s in streams:
|
||||
if type(s['_stream']) == list:
|
||||
reverse = s['_stream'][::-1]
|
||||
for i in reverse:
|
||||
quality = s['_quality'] + reverse.index(i)
|
||||
for index, url in enumerate(s['_stream'][::-1]):
|
||||
quality = s['_quality'] + index
|
||||
formats.append({
|
||||
'quality': quality,
|
||||
'url': i,
|
||||
'format_id': '%s-%s' % (determine_ext(i), quality)
|
||||
'url': url,
|
||||
'format_id': '%s-%s' % (determine_ext(url), quality)
|
||||
})
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue