projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293c9f0
)
[YoutubeDL] Fix playlist entry indexing with --playlist-items (closes #10591, closes...
author
jxu
<7989982+jxu@users.noreply.github.com>
Tue, 28 Jan 2020 10:20:19 +0000
(
05:20
-0500)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 14 Feb 2020 20:36:53 +0000
(
03:36
+0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index f5cb46308198e4c65316fba10ccf30d2f3e14b6a..b09cb0a795f0462de8a98249a7936c4f6532812e 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-990,7
+990,7
@@
class YoutubeDL(object):
'playlist_title': ie_result.get('title'),
'playlist_uploader': ie_result.get('uploader'),
'playlist_uploader_id': ie_result.get('uploader_id'),
- 'playlist_index': i + playliststart,
+ 'playlist_index':
playlistitems[i - 1] if playlistitems else
i + playliststart,
'extractor': ie_result['extractor'],
'webpage_url': ie_result['webpage_url'],
'webpage_url_basename': url_basename(ie_result['webpage_url']),