diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-09-09 23:14:20 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-09-10 03:42:43 +0530 |
commit | 941e881e1fe20ee8955f3b751ce26953d9e86656 (patch) | |
tree | 0c06e04e7a1ae891adc628d2cbf7dc61c2c5de67 /yt_dlp/YoutubeDL.py | |
parent | 0cb0fdbbfe32a0e8bc03c3248b95ec473a98b5cc (diff) | |
download | hypervideo-pre-941e881e1fe20ee8955f3b751ce26953d9e86656.tar.lz hypervideo-pre-941e881e1fe20ee8955f3b751ce26953d9e86656.tar.xz hypervideo-pre-941e881e1fe20ee8955f3b751ce26953d9e86656.zip |
Fix bug in ae1035646a6be09c2aed3e22eb8910f341ddacfe
Closes #4881
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 95fa5fb19..83b5100ee 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -108,6 +108,7 @@ from .utils import ( get_domain, int_or_none, iri_to_uri, + is_path_like, join_nonempty, locked_file, make_archive_id, @@ -725,7 +726,7 @@ class YoutubeDL: archive = set() if fn is None: return archive - elif not isinstance(fn, os.PathLike): + elif not is_path_like(fn): return fn self.write_debug(f'Loading archive file {fn!r}') |