mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
FIx site version
This commit is contained in:
parent
3b8af89c35
commit
cb67d96335
@ -85,8 +85,9 @@ def get_version_and_domain():
|
||||
try:
|
||||
version = get_version(domain_to_use)
|
||||
except:
|
||||
console.print("[green]Auto generate version ...")
|
||||
version = secrets.token_hex(32 // 2)
|
||||
#console.print("[green]Auto generate version ...")
|
||||
#version = secrets.token_hex(32 // 2)
|
||||
version = None
|
||||
|
||||
return version, domain_to_use
|
||||
|
||||
|
@ -69,6 +69,7 @@ class ScrapeSerie:
|
||||
# Extract seasons from JSON response
|
||||
soup = BeautifulSoup(response.text, "html.parser")
|
||||
json_response = json.loads(soup.find("div", {"id": "app"}).get("data-page"))
|
||||
self.version = json_response['version']
|
||||
|
||||
"""
|
||||
response = httpx.post(
|
||||
|
Loading…
x
Reference in New Issue
Block a user