mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 12:31:28 +00:00
[generic] Fix wrong entries index
This commit is contained in:
parent
32fd27ec98
commit
669f0e7cda
1 changed files with 1 additions and 1 deletions
|
@ -702,7 +702,7 @@ def _real_extract(self, url):
|
||||||
})
|
})
|
||||||
|
|
||||||
if len(entries) == 1:
|
if len(entries) == 1:
|
||||||
return entries[1]
|
return entries[0]
|
||||||
else:
|
else:
|
||||||
for num, e in enumerate(entries, start=1):
|
for num, e in enumerate(entries, start=1):
|
||||||
e['title'] = '%s (%d)' % (e['title'], num)
|
e['title'] = '%s (%d)' % (e['title'], num)
|
||||||
|
|
Loading…
Reference in a new issue