This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[generic] Fix wrong entries index
totalwebcasting
Sergey M․
11 years ago
parent
32fd27ec98
commit
669f0e7cda
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube_dl/extractor/generic.py
+ 1
- 1
youtube_dl/extractor/generic.py
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
)
Write
Preview
Loading…
Cancel
Save