[generic] Fix wrong entries index
authorSergey M․ <dstftw@gmail.com>
Thu, 1 May 2014 09:28:37 +0000 (16:28 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 1 May 2014 09:28:37 +0000 (16:28 +0700)
youtube_dl/extractor/generic.py

index 58092da38e44a642efb165a0dc62ee149412a847..d7f0a4d39697f33063f23278d6cd8a80cf6e3368 100644 (file)
@@ -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)