mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 09:54:39 +01:00
[generic] Fix wrong entries index
This commit is contained in:
parent
32fd27ec98
commit
669f0e7cda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user