FIx site version

This commit is contained in:
Lovi 2025-01-23 13:57:18 +01:00
parent 3b8af89c35
commit cb67d96335
2 changed files with 4 additions and 2 deletions

View File

@ -85,8 +85,9 @@ def get_version_and_domain():
try: try:
version = get_version(domain_to_use) version = get_version(domain_to_use)
except: except:
console.print("[green]Auto generate version ...") #console.print("[green]Auto generate version ...")
version = secrets.token_hex(32 // 2) #version = secrets.token_hex(32 // 2)
version = None
return version, domain_to_use return version, domain_to_use

View File

@ -69,6 +69,7 @@ class ScrapeSerie:
# Extract seasons from JSON response # Extract seasons from JSON response
soup = BeautifulSoup(response.text, "html.parser") soup = BeautifulSoup(response.text, "html.parser")
json_response = json.loads(soup.find("div", {"id": "app"}).get("data-page")) json_response = json.loads(soup.find("div", {"id": "app"}).get("data-page"))
self.version = json_response['version']
""" """
response = httpx.post( response = httpx.post(