projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5da402
)
[ARDIE] adjustments suggested by @jaimeMF
author
pulpe
<Pulpan3@gmail.com>
Mon, 16 Jun 2014 16:14:58 +0000
(18:14 +0200)
committer
pulpe
<Pulpan3@gmail.com>
Mon, 16 Jun 2014 16:15:41 +0000
(18:15 +0200)
youtube_dl/extractor/ard.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ard.py
b/youtube_dl/extractor/ard.py
index de8811f236cea2630c06bb0fee1f742fb6a64f3e..b36a4d46a6dd435883eb911de2e3530604476c07 100644
(file)
--- 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