Record multi_video playlists in download archive

This commit is contained in:
Luc Ritchie 2022-12-12 02:18:02 -05:00
parent feebf6d02f
commit 8f35b886d9
No known key found for this signature in database
GPG key ID: D6CDDA7488AE6D50

View file

@ -2013,6 +2013,11 @@ class YoutubeDL:
# Do not set for full playlist
ie_result.pop('requested_entries')
if ie_result['_type'] == 'multi_video' and not failures:
if self.params.get('force_write_download_archive') or (
not self.params.get('simulate') and not self.params.get('skip_download')):
self.record_download_archive(ie_result)
# Write the updated info to json
if _infojson_written is True and self._write_info_json(
'updated playlist', ie_result,