A feature-rich command-line audio/video downloader
Fix bug in ae1035646a6be09c2aed3e22eb8910f341ddacfe
pukkandan9c935fbc72de
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 3cfd0a6997..3b6281066b 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -3484,7 +3484,7 @@ class YoutubeDL:assert vid_idself.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)