1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 00:22:34 +01:00
Closes #4890
This commit is contained in:
pukkandan 2022-09-11 05:10:26 +05:30
parent deae7c1711
commit 9c935fbc72
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -3484,7 +3484,7 @@ def record_download_archive(self, info_dict):
assert vid_id
self.write_debug(f'Adding to archive: {vid_id}')
if isinstance(fn, os.PathLike):
if is_path_like(fn):
with locked_file(fn, 'a', encoding='utf-8') as archive_file:
archive_file.write(vid_id + '\n')
self.archive.add(vid_id)