arrs: move settings into vv_arrs_all() so cache writer includes them

This commit is contained in:
Gmer4Lfe
2026-06-03 18:03:40 -04:00
parent 6104cde755
commit 13ed584d73
2 changed files with 16 additions and 20 deletions
+15
View File
@@ -268,11 +268,26 @@ function vv_arrs_all(): array {
$result[] = $nodeOut;
}
$vars = vv_conf_vars();
$myId = strtoupper($currentHost);
return [
'nodes' => $result,
'sync' => vv_arr_sync_stats(),
'recovery' => vv_arr_recovery_stats(),
'host' => $currentHost,
'settings' => [
'arr_sync_enabled' => ($vars['ARR_SYNC_ENABLED'] ?? 'true') !== 'false',
'sonarr_recovery' => ($vars[$myId . '_SONARR_RECOVERY'] ?? 'true') !== 'false',
'radarr_recovery' => ($vars[$myId . '_RADARR_RECOVERY'] ?? 'true') !== 'false',
'lidarr_recovery' => ($vars[$myId . '_LIDARR_RECOVERY'] ?? 'true') !== 'false',
'recovery_age_hours' => (int)($vars['ARR_IMPORT_RECOVERY_AGE'] ?? 6),
'sonarr_port' => (int)($vars['ARR_SYNC_SONARR_PORT'] ?? 8989),
'radarr_port' => (int)($vars['ARR_SYNC_RADARR_PORT'] ?? 7878),
'lidarr_port' => (int)($vars['ARR_SYNC_LIDARR_PORT'] ?? 8686),
'my_host' => $currentHost,
'my_id' => $myId,
],
'ts' => time(),
];
}