Rename ...

This commit is contained in:
Dark1291 2025-02-05 13:18:19 +01:00
parent f7aee0e922
commit a9a321987f
5 changed files with 25 additions and 54 deletions

View File

@ -9,23 +9,23 @@
<a href="https://www.paypal.com/donate/?hosted_button_id=UXTWMT8P6HE2C">
<img src="https://img.shields.io/badge/_-Donate-red.svg?logo=githubsponsors&labelColor=555555&style=for-the-badge" alt="Donate"/>
</a>
<a href="https://github.com/Lovi-0/StreamingCommunity/commits">
<img src="https://img.shields.io/github/commit-activity/m/Lovi-0/StreamingCommunity?label=commits&style=for-the-badge" alt="Commits"/>
<a href="https://github.com/Abc-dc/StreamingCommunity/commits">
<img src="https://img.shields.io/github/commit-activity/m/Abc-dc/StreamingCommunity?label=commits&style=for-the-badge" alt="Commits"/>
</a>
<a href="https://github.com/Lovi-0/StreamingCommunity/commits">
<img src="https://img.shields.io/github/last-commit/Lovi-0/StreamingCommunity/main?label=&style=for-the-badge&display_timestamp=committer" alt="Last Commit"/>
<a href="https://github.com/Abc-dc/StreamingCommunity/commits">
<img src="https://img.shields.io/github/last-commit/Abc-dc/StreamingCommunity/main?label=&style=for-the-badge&display_timestamp=committer" alt="Last Commit"/>
</a>
</p>
<p align="center">
<a href="https://github.com/Lovi-0/StreamingCommunity/blob/main/LICENSE">
<a href="https://github.com/Abc-dc/StreamingCommunity/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-GPL_3.0-blue.svg?style=for-the-badge" alt="License"/>
</a>
<a href="https://pypi.org/project/streamingcommunity">
<img src="https://img.shields.io/pypi/dm/streamingcommunity?style=for-the-badge" alt="PyPI Downloads"/>
</a>
<a href="https://github.com/Lovi-0/StreamingCommunity">
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Lovi-0/StreamingCommunity/main/Test/Util/loc-badge.json&style=for-the-badge" alt="Lines of Code"/>
<a href="https://github.com/Abc-dc/StreamingCommunity">
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Abc-dc/StreamingCommunity/main/Test/Util/loc-badge.json&style=for-the-badge" alt="Lines of Code"/>
</a>
</p>
@ -58,13 +58,13 @@
# Installation
<p align="center">
<a href="https://github.com/Lovi-0/StreamingCommunity/releases/latest/download/StreamingCommunity.exe">
<a href="https://github.com/Abc-dc/StreamingCommunity/releases/latest/download/StreamingCommunity.exe">
<img src="https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge&logo=windows" alt="Windows">
</a>
<a href="https://github.com/Lovi-0/StreamingCommunity/releases/latest/download/StreamingCommunity.zip">
<a href="https://github.com/Abc-dc/StreamingCommunity/releases/latest/download/StreamingCommunity.zip">
<img src="https://img.shields.io/badge/-Source_tar-green.svg?style=for-the-badge" alt="Source Tarball">
</a>
<a href="https://github.com/Lovi-0/StreamingCommunity/releases">
<a href="https://github.com/Abc-dc/StreamingCommunity/releases">
<img src="https://img.shields.io/badge/-All_Versions-lightgrey.svg?style=for-the-badge" alt="All Versions">
</a>
</p>
@ -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
<a href="https://github.com/Lovi-0/StreamingCommunity/graphs/contributors" alt="View Contributors">
<img src="https://contrib.rocks/image?repo=Lovi-0/StreamingCommunity&max=1000&columns=10" alt="Contributors" />
<a href="https://github.com/Abc-dc/StreamingCommunity/graphs/contributors" alt="View Contributors">
<img src="https://contrib.rocks/image?repo=Abc-dc/StreamingCommunity&max=1000&columns=10" alt="Contributors" />
</a>

View File

@ -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'

View File

@ -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
)

View File

@ -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")

View File

@ -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
)