aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-08 00:17:53 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-08 00:17:53 +0530
commitecb5419149d8f730c6707a356a3d1f45ce210aa5 (patch)
treeb1f2ea8ecf36e3846c11dc9ae64980787ae9f527
parentcf59cd4dcda577e6a48664a692cc248e92de3a9b (diff)
downloadhypervideo-pre-ecb5419149d8f730c6707a356a3d1f45ce210aa5.tar.lz
hypervideo-pre-ecb5419149d8f730c6707a356a3d1f45ce210aa5.tar.xz
hypervideo-pre-ecb5419149d8f730c6707a356a3d1f45ce210aa5.zip
Make more fields available for `--print` when used with `--flat-playlist`
-rw-r--r--yt_dlp/YoutubeDL.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index df6306fd0..1298134b6 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1163,7 +1163,11 @@ class YoutubeDL(object):
extract_flat = self.params.get('extract_flat', False)
if ((extract_flat == 'in_playlist' and 'playlist' in extra_info)
or extract_flat is True):
- self.__forced_printings(ie_result, self.prepare_filename(ie_result), incomplete=True)
+ info_copy = ie_result.copy()
+ self.add_extra_info(info_copy, extra_info)
+ self.add_default_extra_info(
+ info_copy, self.get_info_extractor(ie_result.get('ie_key')), ie_result['url'])
+ self.__forced_printings(info_copy, self.prepare_filename(info_copy), incomplete=True)
return ie_result
if result_type == 'video':