Update run.py

This commit is contained in:
None 2025-05-09 10:36:29 +02:00 committed by GitHub
parent fb6e54bdb1
commit fbfa63eede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
TelegramSession.deleteScriptId(script_id)