aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-05-01 16:28:37 +0700
committerSergey M․ <dstftw@gmail.com>2014-05-01 16:28:37 +0700
commit669f0e7cdaaff51976f4963a845bc7722ea2152f (patch)
tree63d2354b1f37b42bb0635b7a15c434fab715f036 /youtube_dl
parent32fd27ec982d3ba43bd4abe1cfe0dce9568f17b6 (diff)
[generic] Fix wrong entries index
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 58092da38..d7f0a4d39 100644
--- 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)