summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorpulpe <[email protected]>2014-06-16 18:14:58 +0200
committerpulpe <[email protected]>2014-06-16 18:15:41 +0200
commit895ce482b1f3732a5f96014957dac84ec6ca069f (patch)
treea4963c65dee9218e4e6db5c024465d508746094b /youtube_dl
parente5da4021eb75b0ea409d7ca1d8ec4b5f585ce762 (diff)
downloadyoutube-dl-895ce482b1f3732a5f96014957dac84ec6ca069f.tar.gz
youtube-dl-895ce482b1f3732a5f96014957dac84ec6ca069f.zip
[ARDIE] adjustments suggested by @jaimeMF
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/ard.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py
index de8811f23..b36a4d46a 100644
--- a/youtube_dl/extractor/ard.py
+++ b/youtube_dl/extractor/ard.py
@@ -59,13 +59,12 @@ class ARDIE(InfoExtractor):
for s in streams:
if type(s['_stream']) == list:
- reverse = s['_stream'][::-1]
- for i in reverse:
- quality = s['_quality'] + reverse.index(i)
+ for index, url in enumerate(s['_stream'][::-1]):
+ quality = s['_quality'] + index
formats.append({
'quality': quality,
- 'url': i,
- 'format_id': '%s-%s' % (determine_ext(i), quality)
+ 'url': url,
+ 'format_id': '%s-%s' % (determine_ext(url), quality)
})
continue