aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2022-09-11 09:02:35 +0000
committerGitHub <noreply@github.com>2022-09-11 14:32:35 +0530
commit22df97f9c5ef5aaf6d4451d1c632dee4dc325c5f (patch)
tree6bbfe70f57305ac882826710d420181ffe24a749
parent9c935fbc72de8f53c2d65f2ac9ef80b8358e2baf (diff)
downloadhypervideo-pre-22df97f9c5ef5aaf6d4451d1c632dee4dc325c5f.tar.lz
hypervideo-pre-22df97f9c5ef5aaf6d4451d1c632dee4dc325c5f.tar.xz
hypervideo-pre-22df97f9c5ef5aaf6d4451d1c632dee4dc325c5f.zip
Fix bug in 941e881e1fe20ee8955f3b751ce26953d9e86656 (#4893)
Authored by: bashonly
-rw-r--r--yt_dlp/cookies.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py
index 0ccd22947..c3b14f03b 100644
--- a/yt_dlp/cookies.py
+++ b/yt_dlp/cookies.py
@@ -30,6 +30,7 @@ from .utils import (
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)