Skip to content

Commit ff8ec98

Browse files
authored
Merge pull request #436 from plexguide/dev
Dev
2 parents 55e6adf + a81189e commit ff8ec98

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/primary/apps/sonarr/upgrade.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ def process_cutoff_upgrades(
2222
instance_name: str,
2323
api_timeout: int = get_advanced_setting("api_timeout", 120),
2424
monitored_only: bool = True,
25-
25+
# series_type: str = "standard", # TODO: Add series type filtering (standard, daily, anime)
2626
hunt_upgrade_items: int = 5,
2727
upgrade_mode: str = "episodes",
2828
command_wait_delay: int = get_advanced_setting("command_wait_delay", 1),
2929
command_wait_attempts: int = get_advanced_setting("command_wait_attempts", 600),
30-
stop_check: Callable[[], bool] = lambda: False
30+
stop_check: Callable[[], bool] = lambda: False,
31+
skip_series_refresh: bool = False
3132
) -> bool:
3233
"""
3334
Process quality cutoff upgrades for Sonarr.
@@ -45,7 +46,8 @@ def process_cutoff_upgrades(
4546
if upgrade_mode == "seasons_packs":
4647
return process_upgrade_seasons_mode(
4748
api_url, api_key, instance_name, api_timeout, monitored_only,
48-
hunt_upgrade_items, command_wait_delay, command_wait_attempts, stop_check
49+
hunt_upgrade_items, command_wait_delay, command_wait_attempts, stop_check,
50+
skip_series_refresh
4951
)
5052
else: # Default to episodes mode
5153
return process_upgrade_episodes_mode(
@@ -256,7 +258,8 @@ def process_upgrade_seasons_mode(
256258
hunt_upgrade_items: int,
257259
command_wait_delay: int,
258260
command_wait_attempts: int,
259-
stop_check: Callable[[], bool]
261+
stop_check: Callable[[], bool],
262+
skip_series_refresh: bool
260263
) -> bool:
261264
"""Process upgrades in season mode - groups episodes by season."""
262265
processed_any = False

0 commit comments

Comments
 (0)