From 9c935fbc72de8f53c2d65f2ac9ef80b8358e2baf Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 11 Sep 2022 05:10:26 +0530 Subject: [PATCH] Fix bug in ae1035646a6be09c2aed3e22eb8910f341ddacfe Closes #4890 --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 3cfd0a699..3b6281066 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3484,7 +3484,7 @@ class YoutubeDL: 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)