diff --git a/Src/Api/site.py b/Src/Api/site.py index feef8d3..a773bac 100644 --- a/Src/Api/site.py +++ b/Src/Api/site.py @@ -110,27 +110,7 @@ def get_moment_titles(domain: str, version: str, prefix: str): def get_domain() -> str: - """ - Fetches the domain from a Telegra.ph API response. - - Returns: - str: The domain extracted from the API response. - """ - console.print("[cyan]Make request api [white]...") - - try: - response = requests.get("https://api.telegra.ph/getPage/Link-Aggiornato-StreamingCommunity-01-17", headers={'user-agent': get_headers()}) - console.print(f"[green]Request response [white]=> [red]{response.status_code} \n") - response.raise_for_status() # Raise an error if request fails - - if response.ok: - - domain = response.json()['result']['description'].split(".")[1] - return domain - - except Exception as e: - logging.error(f"Error fetching domain: {e}") - sys.exit(0) + pass def test_site(domain: str) -> str: diff --git a/Src/Util/table.py b/Src/Util/table.py index 9e16108..a4fa2e0 100644 --- a/Src/Util/table.py +++ b/Src/Util/table.py @@ -109,7 +109,7 @@ class TVShowManager: key = Prompt.ask("[cyan]Insert media [red]index [yellow]or [red](*) [cyan]to download all media [yellow]or [red][1-2] [cyan]for a range of media") else: choices = [str(i) for i in range(0, max_int_input)] - choices.append("") + choices.extend(['q', ""]) key = Prompt.ask("[cyan]Insert media [red]index", choices=choices, show_choices=False) last_command = key @@ -133,7 +133,7 @@ class TVShowManager: key = Prompt.ask("[cyan]Insert media [red]index [yellow]or [red](*) [cyan]to download all media [yellow]or [red][1-2] [cyan]for a range of media") else: choices = [str(i) for i in range(0, max_int_input)] - choices.append("") + choices.extend(['q', ""]) key = Prompt.ask("[cyan]Insert media [red]index", choices=choices, show_choices=False) last_command = key diff --git a/config.json b/config.json index 99bf9ab..c5e2700 100644 --- a/config.json +++ b/config.json @@ -16,7 +16,7 @@ }, "SITE": { "streaming_site_name": "streamingcommunity", - "streaming_domain": "africa", + "streaming_domain": "marketing", "anime_site_name": "animeunity", "anime_domain": "to" },