0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00
Authored by: bashonly
This commit is contained in:
bashonly 2022-09-11 09:02:35 +00:00 committed by GitHub
parent 9c935fbc72
commit 22df97f9c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@
YoutubeDLCookieJar,
error_to_str,
expand_path,
is_path_like,
try_call,
)
@ -97,7 +98,7 @@ def load_cookies(cookie_file, browser_specification, ydl):
extract_cookies_from_browser(browser_name, profile, YDLLogger(ydl), keyring=keyring, container=container))
if cookie_file is not None:
is_filename = YoutubeDLCookieJar.is_path(cookie_file)
is_filename = is_path_like(cookie_file)
if is_filename:
cookie_file = expand_path(cookie_file)