log cookiejar.LoadError (#669)
This commit is contained in:
parent
c32dbf8bc8
commit
0e967d721f
|
@ -62,8 +62,8 @@ class YtWrap:
|
||||||
"""make extract request"""
|
"""make extract request"""
|
||||||
try:
|
try:
|
||||||
response = yt_dlp.YoutubeDL(self.obs).extract_info(url)
|
response = yt_dlp.YoutubeDL(self.obs).extract_info(url)
|
||||||
except cookiejar.LoadError:
|
except cookiejar.LoadError as err:
|
||||||
print("cookie file is invalid")
|
print(f"cookie file is invalid: {err}")
|
||||||
return False
|
return False
|
||||||
except yt_dlp.utils.ExtractorError as err:
|
except yt_dlp.utils.ExtractorError as err:
|
||||||
print(f"{url}: failed to extract with message: {err}, continue...")
|
print(f"{url}: failed to extract with message: {err}, continue...")
|
||||||
|
|
Loading…
Reference in New Issue