Fix bug in writing playlist info-json

Closes #4889
This commit is contained in:
pukkandan 2022-12-30 14:07:11 +05:30
parent f74371a97d
commit ec54bd43f3
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -1862,11 +1862,10 @@ def __process_playlist(self, ie_result, download):
self.to_screen('[download] Downloading item %s of %s' % ( self.to_screen('[download] Downloading item %s of %s' % (
self._format_screen(i + 1, self.Styles.ID), self._format_screen(n_entries, self.Styles.EMPHASIS))) self._format_screen(i + 1, self.Styles.ID), self._format_screen(n_entries, self.Styles.EMPHASIS)))
extra.update({ entry_result = self.__process_iterable_entry(entry, download, collections.ChainMap({
'playlist_index': playlist_index, 'playlist_index': playlist_index,
'playlist_autonumber': i + 1, 'playlist_autonumber': i + 1,
}) }, extra))
entry_result = self.__process_iterable_entry(entry, download, extra)
if not entry_result: if not entry_result:
failures += 1 failures += 1
if failures >= max_failures: if failures >= max_failures: