This commit is contained in:
Elioo 2025-12-06 02:31:09 +03:30 committed by GitHub
commit f17d63be2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2100,6 +2100,9 @@ class YoutubeDL:
failures = 0 failures = 0
max_failures = self.params.get('skip_playlist_after_errors') or float('inf') max_failures = self.params.get('skip_playlist_after_errors') or float('inf')
self.to_screen(f'[download] Processing playlist with {n_entries} items')
for i, (playlist_index, entry) in enumerate(entries): for i, (playlist_index, entry) in enumerate(entries):
if lazy: if lazy:
resolved_entries.append((playlist_index, entry)) resolved_entries.append((playlist_index, entry))
@ -2117,6 +2120,10 @@ class YoutubeDL:
'playlist_autonumber': i + 1, 'playlist_autonumber': i + 1,
}) })
progress = f'[{i + 1}/{n_entries}]'
sys.stdout.write(f'\r[download] {progress} Downloading item {i + 1} of {n_entries}\n')
sys.stdout.flush()
if self._match_entry(entry_copy, incomplete=True) is not None: if self._match_entry(entry_copy, incomplete=True) is not None:
# For compatabilty with youtube-dl. See https://github.com/yt-dlp/yt-dlp/issues/4369 # For compatabilty with youtube-dl. See https://github.com/yt-dlp/yt-dlp/issues/4369
resolved_entries[i] = (playlist_index, NO_DEFAULT) resolved_entries[i] = (playlist_index, NO_DEFAULT)