From b1a3a169cfbeb1e2e730f54d660abb5e14080d1a Mon Sep 17 00:00:00 2001 From: None <62809003+Arrowar@users.noreply.github.com> Date: Sat, 17 May 2025 09:54:41 +0200 Subject: [PATCH] Fix proxy (#319) * Add ENABLE_VIDEO * Fix proxy * Add error proxy * Update config.json --- .../Api/Site/streamingcommunity/__init__.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py index dfe0f6d..8a2e9db 100644 --- a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py +++ b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py @@ -71,7 +71,7 @@ def get_user_input(string_to_search: str = None): else: return msg.ask(f"\n[purple]Insert a word to search in [green]{site_constant.SITE_NAME}").strip() -def process_search_result(select_title, selections=None): +def process_search_result(select_title, selections=None, proxy=None): """ Handles the search result and initiates the download for either a film or series. @@ -151,15 +151,8 @@ def search(string_to_search: str = None, get_onlyDatabase: bool = False, direct_ return media_search_manager if len_database > 0: - - # Se ci sono risultati, chiama get_select_title per chiedere all'utente quale selezionare. - select_title_obj = get_select_title( - table_show_manager, - media_search_manager, - len_database - ) - - process_search_result(select_title_obj, selections, proxy) + select_title = get_select_title(table_show_manager, media_search_manager) + process_search_result(select_title, selections, proxy) else: no_results_message = f"Nessun risultato trovato per: '{actual_search_query}'"