1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[generic] Fix wrong entries index

This commit is contained in:
Sergey M․ 2014-05-01 16:28:37 +07:00
parent 32fd27ec98
commit 669f0e7cda

View 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)