diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-27 16:22:13 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-27 17:10:26 +0530 |
commit | 3955b20703ccda1568835bc9822479ea68e7ee67 (patch) | |
tree | bf59bc64ec06cdceabef73053cc37c061ab5bc6d | |
parent | f1042989c16795b9f75edd7856b1257570ab40e3 (diff) | |
download | hypervideo-pre-3955b20703ccda1568835bc9822479ea68e7ee67.tar.lz hypervideo-pre-3955b20703ccda1568835bc9822479ea68e7ee67.tar.xz hypervideo-pre-3955b20703ccda1568835bc9822479ea68e7ee67.zip |
Fix bugs in 3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4
Closes #4454
-rw-r--r-- | yt_dlp/YoutubeDL.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index aef348a44..38a8bb6c1 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1713,7 +1713,7 @@ class YoutubeDL: assert ie_result['_type'] in ('playlist', 'multi_video') common_info = self._playlist_infodict(ie_result, strict=True) - title = common_info.get('title') or '<Untitled>' + title = common_info.get('playlist') or '<Untitled>' if self._match_entry(common_info, incomplete=True) is not None: return self.to_screen(f'[download] Downloading {ie_result["_type"]}: {title}') @@ -1733,8 +1733,8 @@ class YoutubeDL: # Better to do this after potentially exhausting entries ie_result['playlist_count'] = all_entries.get_full_count() - common_info = self._playlist_infodict(ie_result, n_entries=int_or_none(n_entries)) - ie_copy = collections.ChainMap(ie_result, common_info) + ie_copy = collections.ChainMap( + ie_result, self._playlist_infodict(ie_result, n_entries=int_or_none(n_entries))) _infojson_written = False write_playlist_files = self.params.get('allow_playlist_files', True) @@ -1782,6 +1782,7 @@ class YoutubeDL: extra = { **common_info, + 'n_entries': int_or_none(n_entries), 'playlist_index': playlist_index, 'playlist_autonumber': i + 1, } |