Browse Source

[ARDIE] fix formats extraction (fixes #3087)

totalwebcasting
pulpe 11 years ago
parent
commit
e5da4021eb
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      youtube_dl/extractor/ard.py

+ 12
- 0
youtube_dl/extractor/ard.py 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'],


Loading…
Cancel
Save