From 669f0e7cdaaff51976f4963a845bc7722ea2152f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 1 May 2014 16:28:37 +0700 Subject: [PATCH] [generic] Fix wrong entries index --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 58092da38e..d7f0a4d396 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)