Bump v3.2.0

This commit is contained in:
None 2025-07-09 09:57:54 +02:00
parent 0b75d09287
commit 01d957ae09
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
__title__ = 'StreamingCommunity' __title__ = 'StreamingCommunity'
__version__ = '3.1.0' __version__ = '3.2.0'
__author__ = 'Arrowar' __author__ = 'Arrowar'
__description__ = 'A command-line program to download film' __description__ = 'A command-line program to download film'
__copyright__ = 'Copyright 2025' __copyright__ = 'Copyright 2025'

View File

@ -36,10 +36,8 @@ class ConfigManager:
base_path = os.path.dirname(sys.executable) base_path = os.path.dirname(sys.executable)
else: else:
# Use the current working directory where the script is executed
# Get the actual path of the module file base_path = os.getcwd()
current_file_path = os.path.abspath(__file__)
base_path = os.path.dirname(os.path.dirname(os.path.dirname(current_file_path)))
# Initialize file paths # Initialize file paths
self.file_path = os.path.join(base_path, file_name) self.file_path = os.path.join(base_path, file_name)
@ -140,7 +138,7 @@ class ConfigManager:
console.print(f"[bold cyan]Downloading reference configuration:[/bold cyan] [green]{self.reference_config_url}[/green]") console.print(f"[bold cyan]Downloading reference configuration:[/bold cyan] [green]{self.reference_config_url}[/green]")
try: try:
response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()}, verify=self.get_bool('REQUESTS', 'verify')) response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()})
if response.status_code == 200: if response.status_code == 200:
with open(self.file_path, 'wb') as f: with open(self.file_path, 'wb') as f: