Обновить test.py
This commit is contained in:
parent
43de09ad97
commit
12372a18c0
2
test.py
2
test.py
@ -67,7 +67,7 @@ def download_video(url):
|
|||||||
print(f"ERROR VIDEO {url}: {error_message}")
|
print(f"ERROR VIDEO {url}: {error_message}")
|
||||||
if "This video has been removed" in error_message or "Video unavailable" in error_message:
|
if "This video has been removed" in error_message or "Video unavailable" in error_message:
|
||||||
save_downloaded_url(failed_downloads_file, url)
|
save_downloaded_url(failed_downloads_file, url)
|
||||||
if "Sign in to confirm you’re not a bot" in error_message:
|
if "Sign in to confirm youre not a bot" in error_message:
|
||||||
print("Critical error detected: Sign-in required. Stopping execution.")
|
print("Critical error detected: Sign-in required. Stopping execution.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user