Skip to content

Commit a01f444

Browse files
committed
fix(decypharr): simplify mount type logic and remove beta branch handling in startup process
1 parent 428f86d commit a01f444

1 file changed

Lines changed: 2 additions & 27 deletions

File tree

api/routers/process.py

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ def _effective_core_dependencies(
321321
)
322322

323323
if core_key == "decypharr":
324-
branch_name = _normalize_dep_token(cfg.get("branch") or "")
325324
mount_type = _normalize_dep_token(cfg.get("mount_type") or "")
326325
if not mount_type:
327-
mount_type = "dfs" if branch_name == "beta" else "rclone"
326+
mount_type = "rclone"
328327
if mount_type in {"rclone", "dfs", "none"}:
329328
deps = [dep for dep in deps if dep != "rclone"]
330329

@@ -3691,7 +3690,6 @@ def _run_startup(request: UnifiedStartRequest, updater, api_state, logger):
36913690
)
36923691
or ""
36933692
)
3694-
beta_enabled = str(branch_name).strip().lower() == "beta"
36953693
mount_type = (
36963694
effective_opts.get(
36973695
"mount_type",
@@ -3700,9 +3698,7 @@ def _run_startup(request: UnifiedStartRequest, updater, api_state, logger):
37003698
or ""
37013699
)
37023700
mount_type = str(mount_type).strip().lower()
3703-
if beta_enabled and not mount_type:
3704-
mount_type = "dfs"
3705-
if not mount_type and not beta_enabled:
3701+
if not mount_type:
37063702
mount_type = "rclone"
37073703

37083704
effective_config = copy.deepcopy(config.get(config_key, {}) or {})
@@ -3713,27 +3709,6 @@ def _run_startup(request: UnifiedStartRequest, updater, api_state, logger):
37133709

37143710
dependencies = _effective_core_dependencies(config_key, effective_config)
37153711

3716-
if config_key == "decypharr" and beta_enabled:
3717-
# Beta builds use branch deployments; default to beta unless overridden
3718-
desired_branch = effective_opts.get("branch") or "beta"
3719-
cfg = config.get(config_key, {}) or {}
3720-
updated = False
3721-
if not cfg.get("branch_enabled"):
3722-
cfg["branch_enabled"] = True
3723-
updated = True
3724-
if (cfg.get("branch") or "").strip() != desired_branch:
3725-
cfg["branch"] = desired_branch
3726-
updated = True
3727-
if cfg.get("release_version_enabled"):
3728-
cfg["release_version_enabled"] = False
3729-
updated = True
3730-
if cfg.get("mount_type") != mount_type:
3731-
cfg["mount_type"] = mount_type
3732-
updated = True
3733-
if updated:
3734-
config[config_key] = cfg
3735-
CONFIG_MANAGER.save_config()
3736-
37373712
if config_key == "decypharr":
37383713
# Persist provider API keys from onboarding/runtime requests so both
37393714
# Decypharr config patching and external_rclone reconciliation can

0 commit comments

Comments
 (0)