diff --git a/StreamingCommunity/run.py b/StreamingCommunity/run.py index 4c7446b..fb107d4 100644 --- a/StreamingCommunity/run.py +++ b/StreamingCommunity/run.py @@ -21,7 +21,7 @@ from rich.prompt import Prompt from .global_search import global_search from StreamingCommunity.Util.message import start_message from StreamingCommunity.Util.config_json import config_manager -from StreamingCommunity.Util.os import os_summary +from StreamingCommunity.Util.os import os_summary, internet_manager from StreamingCommunity.Util.logger import Logger from StreamingCommunity.Upload.update import update as git_update from StreamingCommunity.Lib.TMBD import tmdb @@ -200,6 +200,14 @@ def main(script_id = 0): # Create logger log_not = Logger() initialize() + + if not internet_manager.check_dns_provider(): + console.print("[yellow]⚠️ WARNING: DNS not properly configured!") + console.print("[yellow]Some sites may not work correctly.") + console.print("[yellow]Recommended DNS servers:") + console.print("[blue]• Cloudflare (1.1.1.1)") + console.print("[blue]• Quad9 (9.9.9.9)") + time.sleep(5) # Load search functions search_functions = load_search_functions() @@ -381,4 +389,4 @@ def main(script_id = 0): # Delete script_id script_id = TelegramSession.get_session() if script_id != "unknown": - TelegramSession.deleteScriptId(script_id) \ No newline at end of file + TelegramSession.deleteScriptId(script_id)