mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-07-13 04:28:15 +00:00
log cookiejar.LoadError (#669)
This commit is contained in:
parent
c32dbf8bc8
commit
0e967d721f
@ -62,8 +62,8 @@ class YtWrap:
|
||||
"""make extract request"""
|
||||
try:
|
||||
response = yt_dlp.YoutubeDL(self.obs).extract_info(url)
|
||||
except cookiejar.LoadError:
|
||||
print("cookie file is invalid")
|
||||
except cookiejar.LoadError as err:
|
||||
print(f"cookie file is invalid: {err}")
|
||||
return False
|
||||
except yt_dlp.utils.ExtractorError as err:
|
||||
print(f"{url}: failed to extract with message: {err}, continue...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user