]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in 0647d9251f7285759109cc82693efee533346911
authorpukkandan <redacted>
Mon, 1 Aug 2022 22:34:05 +0000 (04:04 +0530)
committerpukkandan <redacted>
Mon, 1 Aug 2022 22:34:39 +0000 (04:04 +0530)
yt_dlp/YoutubeDL.py

index e72354becb9d697cd0ac09bd043ed128c294e02a..7ee83ed4ab5a304b3fbeb84521786191219c0def 100644 (file)
@@ -1799,6 +1799,10 @@ def __process_playlist(self, ie_result, download):
             self.to_screen('[download] Downloading video %s of %s' % (
                 self._format_screen(i + 1, self.Styles.ID), self._format_screen(n_entries, self.Styles.EMPHASIS)))
 
+            extra.update({
+                'playlist_index': playlist_index,
+                'playlist_autonumber': i + 1,
+            })
             entry_result = self.__process_iterable_entry(entry, download, extra)
             if not entry_result:
                 failures += 1