Browse Source

Merge pull request #3089 from pulpe/ard_fix

[ARDIE] fix formats extraction (fixes #3087)
totalwebcasting
Petr Půlpán 11 years ago
parent
commit
f9df094ca5
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      youtube_dl/extractor/ard.py

+ 11
- 0
youtube_dl/extractor/ard.py View File

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


Loading…
Cancel
Save