From 59d7de0da545944c48a82fc2937b996d7cd8cc9c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 24 Jan 2023 03:43:48 +0530 Subject: [PATCH] Fix `--concat-playlist` Closes #6080 --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 1fb44e7f9..fd280726f 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1777,7 +1777,7 @@ def _playlist_infodict(ie_result, strict=False, **kwargs): return { **info, 'playlist_index': 0, - '__last_playlist_index': max(ie_result['requested_entries'] or (0, 0)), + '__last_playlist_index': max(ie_result.get('requested_entries') or (0, 0)), 'extractor': ie_result['extractor'], 'extractor_key': ie_result['extractor_key'], }