diff --git a/README.md b/README.md index 7d80688..34e7bec 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,23 @@ Donate - - Commits + + Commits - - Last Commit + + Last Commit

- + License PyPI Downloads - - Lines of Code + + Lines of Code

@@ -58,13 +58,13 @@ # Installation

- + Windows - + Source Tarball - + All Versions

@@ -554,7 +554,7 @@ python3 telegram_bot.py # To Do -- Finish [website API](https://github.com/Lovi-0/StreamingCommunity/tree/test_gui_1) +- Finish [website API](https://github.com/Abc-dc/StreamingCommunity/tree/test_gui_1) # Contributing @@ -572,6 +572,6 @@ This software is provided "as is", without warranty of any kind, express or impl ## Contributors - - Contributors + + Contributors diff --git a/StreamingCommunity/Upload/version.py b/StreamingCommunity/Upload/version.py index 6e81304..36ad52c 100644 --- a/StreamingCommunity/Upload/version.py +++ b/StreamingCommunity/Upload/version.py @@ -1,5 +1,5 @@ __title__ = 'StreamingCommunity' __version__ = '2.5.0' -__author__ = 'Lovi-0' +__author__ = 'Abc-dc' __description__ = 'A command-line program to download film' __copyright__ = 'Copyright 2024' diff --git a/StreamingCommunity/Util/_jsonConfig.py b/StreamingCommunity/Util/_jsonConfig.py index 653380b..79716c8 100644 --- a/StreamingCommunity/Util/_jsonConfig.py +++ b/StreamingCommunity/Util/_jsonConfig.py @@ -34,7 +34,7 @@ class ConfigManager: else: logging.info("Configuration file does not exist. Downloading...") self.download_requirements( - 'https://raw.githubusercontent.com/Lovi-0/StreamingCommunity/refs/heads/main/config.json', + 'https://raw.githubusercontent.com/Abc-dc/StreamingCommunity/refs/heads/main/config.json', self.file_path ) diff --git a/StreamingCommunity/Util/message.py b/StreamingCommunity/Util/message.py index ad541ad..804541c 100644 --- a/StreamingCommunity/Util/message.py +++ b/StreamingCommunity/Util/message.py @@ -7,58 +7,30 @@ import platform from StreamingCommunity.Util.console import console from StreamingCommunity.Util._jsonConfig import config_manager + # Variable CLEAN = config_manager.get_bool('DEFAULT', 'clean_console') SHOW = config_manager.get_bool('DEFAULT', 'show_message') -def create_italian_flag_colored_text(text: str) -> str: - """Create text divided into three sections with Italian flag colors, splitting each line at two spaces.""" - - # Split the text into lines - lines = text.splitlines() - - colored_lines = [] - - for line in lines: - # Split each line into parts using two spaces as a delimiter - parts = line.split(" ") - - # Ensure there are exactly 3 parts (add empty strings if necessary) - parts += [''] * (4 - len(parts)) - - # Apply flag colors to the parts - green_part = f"[green]{parts[0]}[/]" - white_part = f"[white]{parts[1]}[/]" - red_part = f"[red]{parts[2]}[/]" - - # Reassemble the colored line - colored_line = green_part + white_part + red_part - colored_lines.append(colored_line) - - # Join all colored lines back into a single string - return "\n".join(colored_lines) - def start_message(): """Display a stylized start message in the console.""" msg = r''' - ██╗ ██████╗ ██╗ ██╗██╗ ██╗ ██╗ ███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗██╗███╗ ██╗ ██████╗ - ██║ ██╔═══██╗██║ ██║██║ ╚██╗██╔╝ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔════╝ - ██║ ██║ ██║██║ ██║██║ ╚███╔╝ ███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║██║██╔██╗ ██║██║ ███╗ - ██║ ██║ ██║╚██╗ ██╔╝██║ ██╔██╗ ╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║██║██║╚██╗██║██║ ██║ - ███████╗╚██████╔╝ ╚████╔╝ ██║ ██╔╝ ██╗ ███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║╚██████╔╝ - ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝ + __ __ _ _____ __ _ + / //_/(_)________ ____ _ __ / ___// /_________ ____ _____ ___ (_)___ ____ _ + / ,< / / ___/ __ \/ __ \ | |/_/ \__ \/ __/ ___/ _ \/ __ `/ __ `__ \/ / __ \/ __ `/ + / /| |/ / / / /_/ / / / / _> < ___/ / /_/ / / __/ /_/ / / / / / / / / / / /_/ / +/_/ |_/_/_/ \____/_/ /_/ /_/|_| /____/\__/_/ \___/\__,_/_/ /_/ /_/_/_/ /_/\__, / + /____/ '''.rstrip() - colored_msg = create_italian_flag_colored_text(msg) - if CLEAN: os.system("cls" if platform.system() == 'Windows' else "clear") if SHOW: - console.print(colored_msg) + console.print(f"[purple]{msg}") # Print a decorative separator line using asterisks separator = "_" * (console.width - 2) # Ridotto di 2 per il padding - console.print(f"[yellow]{separator}[/yellow]\n") + console.print(f"[cyan]{separator}[/cyan]\n") diff --git a/StreamingCommunity/Util/os.py b/StreamingCommunity/Util/os.py index 7cb2bd4..c849fbf 100644 --- a/StreamingCommunity/Util/os.py +++ b/StreamingCommunity/Util/os.py @@ -411,7 +411,6 @@ class OsSummary: def get_system_summary(self): self.check_python_version() InternManager().check_internet() - console.print("[bold blue]System Summary[/bold blue][white]:") # Python info python_version = sys.version.split()[0] @@ -477,7 +476,7 @@ class OsSummary: if not os.path.exists(requirements_file): self.download_requirements( - 'https://raw.githubusercontent.com/Lovi-0/StreamingCommunity/refs/heads/main/requirements.txt', + 'https://raw.githubusercontent.com/Abc-dc/StreamingCommunity/refs/heads/main/requirements.txt', requirements_file )