]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in ae1035646a6be09c2aed3e22eb8910f341ddacfe
authorpukkandan <redacted>
Sat, 10 Sep 2022 23:40:26 +0000 (05:10 +0530)
committerpukkandan <redacted>
Sat, 10 Sep 2022 23:42:52 +0000 (05:12 +0530)
Closes #4890

yt_dlp/YoutubeDL.py

index 3cfd0a69973427b4bde90ba7af963a7f971d8d84..3b6281066b4cff808633e1462051ecacbe3f43ec 100644 (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)