Skip to content

Commit

Permalink
[YoutubeDL] Fix playlist entry indexing with --playlist-items (closes…
Browse files Browse the repository at this point in the history
… #10591, closes #10622)
  • Loading branch information
jxu authored and bbepis committed Feb 27, 2020
1 parent 3e85f38 commit 806235e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ def report_download(num_entries):
'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']),
Expand Down

0 comments on commit 806235e

Please sign in to comment.