aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ard.py
diff options
context:
space:
mode:
authorpulpe <Pulpan3@gmail.com>2014-06-16 16:17:49 +0200
committerpulpe <Pulpan3@gmail.com>2014-06-16 16:17:49 +0200
commite5da4021eb75b0ea409d7ca1d8ec4b5f585ce762 (patch)
tree7dd11e66a2ec8fd013889c66d21804d8f79eb627 /youtube_dl/extractor/ard.py
parent2371053565787dc833b04a6d8a45730d61ae7074 (diff)
[ARDIE] fix formats extraction (fixes #3087)
Diffstat (limited to 'youtube_dl/extractor/ard.py')
-rw-r--r--youtube_dl/extractor/ard.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py
index c6d22c029..de8811f23 100644
--- a/youtube_dl/extractor/ard.py
+++ b/youtube_dl/extractor/ard.py
@@ -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'],