mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Update run.py
This commit is contained in:
parent
fb6e54bdb1
commit
fbfa63eede
@ -21,7 +21,7 @@ from rich.prompt import Prompt
|
|||||||
from .global_search import global_search
|
from .global_search import global_search
|
||||||
from StreamingCommunity.Util.message import start_message
|
from StreamingCommunity.Util.message import start_message
|
||||||
from StreamingCommunity.Util.config_json import config_manager
|
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.Util.logger import Logger
|
||||||
from StreamingCommunity.Upload.update import update as git_update
|
from StreamingCommunity.Upload.update import update as git_update
|
||||||
from StreamingCommunity.Lib.TMBD import tmdb
|
from StreamingCommunity.Lib.TMBD import tmdb
|
||||||
@ -201,6 +201,14 @@ def main(script_id = 0):
|
|||||||
log_not = Logger()
|
log_not = Logger()
|
||||||
initialize()
|
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
|
# Load search functions
|
||||||
search_functions = load_search_functions()
|
search_functions = load_search_functions()
|
||||||
logging.info(f"Load module in: {time.time() - start} s")
|
logging.info(f"Load module in: {time.time() - start} s")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user