1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[ARDIE] fix formats extraction (fixes #3087)

This commit is contained in:
pulpe 2014-06-16 16:17:49 +02:00
parent 2371053565
commit e5da4021eb

View file

@ -56,7 +56,19 @@ class ARDIE(InfoExtractor):
raise ExtractorError('This video is only available after 20:00')
formats = []
for s in streams:
if type(s['_stream']) == list:
reverse = s['_stream'][::-1]
for i in reverse:
quality = s['_quality'] + reverse.index(i)
formats.append({
'quality': quality,
'url': i,
'format_id': '%s-%s' % (determine_ext(i), quality)
})
continue
format = {
'quality': s['_quality'],
'url': s['_stream'],