aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Půlpán <Pulpan3@gmail.com>2014-06-17 14:53:51 +0200
committerPetr Půlpán <Pulpan3@gmail.com>2014-06-17 14:53:51 +0200
commitf9df094ca51db94ee63d138f3fe8f2d226f30655 (patch)
treefe2f46ea1509dd0143ee5727ddf998d539cc1a48
parentb60a4690238d78c3f1fe66fb4906814b47116dd0 (diff)
parent895ce482b1f3732a5f96014957dac84ec6ca069f (diff)
Merge pull request #3089 from pulpe/ard_fix
[ARDIE] fix formats extraction (fixes #3087)
-rw-r--r--youtube_dl/extractor/ard.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py
index c6d22c029..b36a4d46a 100644
--- a/youtube_dl/extractor/ard.py
+++ b/youtube_dl/extractor/ard.py
@@ -56,7 +56,18 @@ class ARDIE(InfoExtractor):
raise ExtractorError('This video is only available after 20:00')
formats = []
+
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 = {
'quality': s['_quality'],
'url': s['_stream'],