aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-24 03:43:48 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-24 03:43:48 +0530
commit59d7de0da545944c48a82fc2937b996d7cd8cc9c (patch)
treecf85a3dc18ab7b997e02589c8faddea50d2a476c
parent88d8928bf7630801865cf8728ae5c77234324b7b (diff)
downloadhypervideo-pre-59d7de0da545944c48a82fc2937b996d7cd8cc9c.tar.lz
hypervideo-pre-59d7de0da545944c48a82fc2937b996d7cd8cc9c.tar.xz
hypervideo-pre-59d7de0da545944c48a82fc2937b996d7cd8cc9c.zip
Fix `--concat-playlist`
Closes #6080
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class YoutubeDL:
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'],
}