Skip to content

Commit 70f16d0

Browse files
committed
Bump v3.3.8
1 parent fa709e5 commit 70f16d0

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

StreamingCommunity/Api/Site/animeunity/serie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def download_series(select_title: MediaItem, season_selection: str = None, episo
104104

105105
# Get episode information
106106
episoded_count = scrape_serie.get_count_episodes()
107-
console.print(f"[green]Episodes count:[/green] [red]{episoded_count}[/red]")
107+
console.print(f"\n[green]Episodes count:[/green] [red]{episoded_count}[/red]")
108108

109109
# Telegram bot integration
110110
if episode_selection is None:

StreamingCommunity/Api/Site/animeworld/serie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def download_series(select_title: MediaItem, episode_selection: str = None):
8484
episodes = scrape_serie.get_episodes()
8585

8686
# Get episode count
87-
console.print(f"[green]Episodes found:[/green] [red]{len(episodes)}[/red]")
87+
console.print(f"\n[green]Episodes count:[/green] [red]{len(episodes)}[/red]")
8888

8989
# Display episodes list and get user selection
9090
if episode_selection is None:

StreamingCommunity/Api/Template/loader.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@ def load_search_functions() -> Dict[str, LazySearchModule]:
105105
loaded_functions = {}
106106

107107
# Determine base path (calculated once)
108-
base_path = os.path.join(
109-
sys._MEIPASS, "StreamingCommunity"
110-
) if getattr(sys, 'frozen', False) else os.path.dirname(os.path.dirname(__file__))
111-
api_dir = os.path.join(base_path, 'Site')
108+
if getattr(sys, 'frozen', False):
109+
110+
# When frozen (exe), sys._MEIPASS points to temporary extraction directory
111+
base_path = os.path.join(sys._MEIPASS, "StreamingCommunity")
112+
api_dir = os.path.join(base_path, 'Api', 'Site')
113+
114+
else:
115+
# When not frozen, __file__ is in StreamingCommunity/Api/Template/loader.py
116+
# Go up two levels to get to StreamingCommunity/Api
117+
base_path = os.path.dirname(os.path.dirname(__file__))
118+
api_dir = os.path.join(base_path, 'Site')
112119

113120
# Quick scan: just read directory structure and module metadata
114121
modules_metadata = []
@@ -138,6 +145,7 @@ def load_search_functions() -> Dict[str, LazySearchModule]:
138145

139146
if indice is not None:
140147
modules_metadata.append((module_name, indice))
148+
logging.info(f"Found module: {module_name} (index: {indice})")
141149

142150
except Exception as e:
143151
console.print(f"[yellow]Warning: Could not read metadata from {module_name}: {str(e)}")
@@ -146,4 +154,5 @@ def load_search_functions() -> Dict[str, LazySearchModule]:
146154
for module_name, indice in sorted(modules_metadata, key=lambda x: x[1]):
147155
loaded_functions[f'{module_name}_search'] = LazySearchModule(module_name, indice)
148156

157+
logging.info(f"Loaded {len(loaded_functions)} search modules")
149158
return loaded_functions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'StreamingCommunity'
2-
__version__ = '3.3.7'
2+
__version__ = '3.3.8'
33
__author__ = 'Arrowar'
44
__description__ = 'A command-line program to download film'
55
__copyright__ = 'Copyright 2025'

StreamingCommunity/Util/config_json.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ def _load_site_data_online(self) -> None:
155155
# Determine which file to save to
156156
self._save_domains_to_appropriate_location()
157157

158-
site_count = len(self.configSite) if isinstance(self.configSite, dict) else 0
159-
console.print(f"[bold green]Domains loaded from GitHub:[/bold green] {site_count} streaming services found.")
160-
161158
else:
162159
console.print(f"[bold red]GitHub request failed:[/bold red] HTTP {response.status_code}, {response.text[:100]}")
163160
self._handle_site_data_fallback()

requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ bs4
33
rich
44
tqdm
55
m3u8
6-
certifi
76
psutil
87
unidecode
98
curl_cffi
@@ -13,5 +12,4 @@ pycryptodomex
1312
ua-generator
1413
qbittorrent-api
1514
pyTelegramBotAPI
16-
pywidevine
17-
seleniumbase
15+
pywidevine

0 commit comments

Comments
 (0)