projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fd27e
)
[generic] Fix wrong entries index
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 May 2014 09:28:37 +0000
(16:28 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 May 2014 09:28:37 +0000
(16:28 +0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 58092da38e44a642efb165a0dc62ee149412a847..d7f0a4d39697f33063f23278d6cd8a80cf6e3368 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-702,7
+702,7
@@
class GenericIE(InfoExtractor):
})
if len(entries) == 1:
- return entries[
1
]
+ return entries[
0
]
else:
for num, e in enumerate(entries, start=1):
e['title'] = '%s (%d)' % (e['title'], num)