mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-11 13:05:52 +01:00
parent
deae7c1711
commit
9c935fbc72
@ -3484,7 +3484,7 @@ def record_download_archive(self, info_dict):
|
|||||||
assert vid_id
|
assert vid_id
|
||||||
|
|
||||||
self.write_debug(f'Adding to archive: {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:
|
with locked_file(fn, 'a', encoding='utf-8') as archive_file:
|
||||||
archive_file.write(vid_id + '\n')
|
archive_file.write(vid_id + '\n')
|
||||||
self.archive.add(vid_id)
|
self.archive.add(vid_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user