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 pareronia committed Jun 22, 2020
1 parent f29015f commit 6d53e1f
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 @@ -990,7 +990,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 6d53e1f

Please sign in to comment.