]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in writing playlist info-json
authorpukkandan <redacted>
Fri, 30 Dec 2022 08:37:11 +0000 (14:07 +0530)
committerpukkandan <redacted>
Fri, 30 Dec 2022 08:37:15 +0000 (14:07 +0530)
Closes #4889

yt_dlp/YoutubeDL.py

index 5057323274998bc19e18ecb66959ca20547fd855..db6bfded83548a4c1a8cfa998875790d4e905a62 100644 (file)
@@ -1862,11 +1862,10 @@ def __process_playlist(self, ie_result, download):
             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)))
 
-            extra.update({
+            entry_result = self.__process_iterable_entry(entry, download, collections.ChainMap({
                 'playlist_index': playlist_index,
                 'playlist_autonumber': i + 1,
-            })
-            entry_result = self.__process_iterable_entry(entry, download, extra)
+            }, extra))
             if not entry_result:
                 failures += 1
             if failures >= max_failures: