Skip to content

Commit 01d957a

Browse files
committed
Bump v3.2.0
1 parent 0b75d09 commit 01d957a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'StreamingCommunity'
2-
__version__ = '3.1.0'
2+
__version__ = '3.2.0'
33
__author__ = 'Arrowar'
44
__description__ = 'A command-line program to download film'
55
__copyright__ = 'Copyright 2025'

StreamingCommunity/Util/config_json.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ def __init__(self, file_name: str = 'config.json') -> None:
3636
base_path = os.path.dirname(sys.executable)
3737

3838
else:
39-
40-
# Get the actual path of the module file
41-
current_file_path = os.path.abspath(__file__)
42-
base_path = os.path.dirname(os.path.dirname(os.path.dirname(current_file_path)))
39+
# Use the current working directory where the script is executed
40+
base_path = os.getcwd()
4341

4442
# Initialize file paths
4543
self.file_path = os.path.join(base_path, file_name)
@@ -140,7 +138,7 @@ def _download_reference_config(self) -> None:
140138
console.print(f"[bold cyan]Downloading reference configuration:[/bold cyan] [green]{self.reference_config_url}[/green]")
141139

142140
try:
143-
response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()}, verify=self.get_bool('REQUESTS', 'verify'))
141+
response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()})
144142

145143
if response.status_code == 200:
146144
with open(self.file_path, 'wb') as f:

0 commit comments

Comments
 (0)