mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 20:15:24 +00:00
Fix domain not update
This commit is contained in:
parent
cb6d5837f2
commit
768589ed48
@ -147,7 +147,7 @@ def test_site(domain: str) -> str:
|
|||||||
console.print(f"[cyan]Make request site to {site_url} [white]...")
|
console.print(f"[cyan]Make request site to {site_url} [white]...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(site_url, headers={'user-agent': get_headers()})
|
response = requests.get(site_url, headers={'user-agent': get_headers()}, timeout=4)
|
||||||
console.print(f"[green]Request response [white]=> [red]{response.status_code} \n")
|
console.print(f"[green]Request response [white]=> [red]{response.status_code} \n")
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
||||||
@ -159,7 +159,6 @@ def test_site(domain: str) -> str:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
console.log("[red]Try again in 10 minutes.")
|
console.log("[red]Try again in 10 minutes.")
|
||||||
logging.error(f"Error testing site: {e}, changing DOMAIN ...")
|
logging.error(f"Error testing site: {e}, changing DOMAIN ...")
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
def get_version(text: str) -> str:
|
def get_version(text: str) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user