From: Sergey M․ Date: Thu, 1 May 2014 09:28:37 +0000 (+0700) Subject: [generic] Fix wrong entries index X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=669f0e7cdaaff51976f4963a845bc7722ea2152f;p=youtube-dl [generic] Fix wrong entries index --- 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)