mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-18 19:45:03 +00:00
[ARDIE] adjustments suggested by @jaimeMF
This commit is contained in:
parent
e5da4021eb
commit
895ce482b1
@ -59,13 +59,12 @@ class ARDIE(InfoExtractor):
|
|||||||
|
|
||||||
for s in streams:
|
for s in streams:
|
||||||
if type(s['_stream']) == list:
|
if type(s['_stream']) == list:
|
||||||
reverse = s['_stream'][::-1]
|
for index, url in enumerate(s['_stream'][::-1]):
|
||||||
for i in reverse:
|
quality = s['_quality'] + index
|
||||||
quality = s['_quality'] + reverse.index(i)
|
|
||||||
formats.append({
|
formats.append({
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
'url': i,
|
'url': url,
|
||||||
'format_id': '%s-%s' % (determine_ext(i), quality)
|
'format_id': '%s-%s' % (determine_ext(url), quality)
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user