Skip to content

Commit bc5931c

Browse files
Arrowargithub-actions[bot]
authored andcommitted
Fix wrong number season
1 parent bb9ac5f commit bc5931c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/.domain/domains.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"time_change": "2025-03-19 12:20:19"
77
},
88
"cb01new": {
9-
"domain": "info",
10-
"full_url": "https://cb01net.info/",
11-
"old_domain": "pro",
12-
"time_change": "2025-07-22 17:21:55"
9+
"domain": "run",
10+
"full_url": "https://cb01net.run/",
11+
"old_domain": "watch",
12+
"time_change": "2025-07-29 10:24:42"
1313
},
1414
"animeunity": {
1515
"domain": "so",
@@ -48,10 +48,10 @@
4848
"time_change": "2025-07-08 13:59:37"
4949
},
5050
"streamingcommunity": {
51-
"domain": "cash",
52-
"full_url": "https://streamingcommunityz.cash/",
53-
"old_domain": "bio",
54-
"time_change": "2025-07-24 14:24:12"
51+
"domain": "info",
52+
"full_url": "https://streamingcommunityz.info/",
53+
"old_domain": "cash",
54+
"time_change": "2025-07-28 19:19:42"
5555
},
5656
"altadefinizionegratis": {
5757
"domain": "city",

StreamingCommunity/Api/Site/streamingcommunity/series.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ def download_series(select_season: MediaItem, season_selection: str = None, epis
200200

201201
# Loop through the selected seasons and download episodes
202202
for i_season in list_season_select:
203-
season = None
204-
for s in scrape_serie.seasons_manager.seasons:
205-
if s.number == i_season:
206-
season = s
207-
break
203+
try:
204+
season = scrape_serie.seasons_manager.seasons[i_season - 1]
205+
except IndexError:
206+
console.print(f"[red]Season index {i_season} not found! Available seasons: {[s.number for s in scrape_serie.seasons_manager.seasons]}")
207+
continue
208208
season_number = season.number
209209

210210
if len(list_season_select) > 1 or index_season_selected == "*":
@@ -219,4 +219,4 @@ def download_series(select_season: MediaItem, season_selection: str = None, epis
219219
# Get script_id
220220
script_id = TelegramSession.get_session()
221221
if script_id != "unknown":
222-
TelegramSession.deleteScriptId(script_id)
222+
TelegramSession.deleteScriptId(script_id)

0 commit comments

Comments
 (0)