diff options
author | jxu <7989982+jxu@users.noreply.github.com> | 2020-01-28 05:20:19 -0500 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-02-15 03:36:53 +0700 |
commit | de1121d749089ea62d17aadb43493c00492bb37a (patch) | |
tree | ccc6d8a6daab0ea205cebe1fca768d3b3e9850ad /youtube_dl/YoutubeDL.py | |
parent | 293c9f0186334fe8475f67508a8e156fb8b64e1e (diff) |
[YoutubeDL] Fix playlist entry indexing with --playlist-items (closes #10591, closes #10622)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index f5cb46308..b09cb0a79 100755 --- 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']), |