From 33f82fe44568888b086dbda128f3b230a189a1e7 Mon Sep 17 00:00:00 2001 From: JayZed Date: Mon, 4 Mar 2024 22:52:24 -0500 Subject: [PATCH] Added Weekly Sync option for Radarr and Sonarr --- bazarr/app/config.py | 4 ++-- frontend/src/pages/Settings/Scheduler/options.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr/app/config.py b/bazarr/app/config.py index e6629105e..5e9d74bbc 100644 --- a/bazarr/app/config.py +++ b/bazarr/app/config.py @@ -165,7 +165,7 @@ validators = [ Validator('sonarr.full_update_hour', must_exist=True, default=4, is_type_of=int, gte=0, lte=23), Validator('sonarr.only_monitored', must_exist=True, default=False, is_type_of=bool), Validator('sonarr.series_sync', must_exist=True, default=60, is_type_of=int, - is_in=[15, 60, 180, 360, 720, 1440, ONE_HUNDRED_YEARS_IN_MINUTES]), + is_in=[15, 60, 180, 360, 720, 1440, 10080, ONE_HUNDRED_YEARS_IN_MINUTES]), Validator('sonarr.excluded_tags', must_exist=True, default=[], is_type_of=list), Validator('sonarr.excluded_series_types', must_exist=True, default=[], is_type_of=list), Validator('sonarr.use_ffprobe_cache', must_exist=True, default=True, is_type_of=bool), @@ -188,7 +188,7 @@ validators = [ Validator('radarr.full_update_hour', must_exist=True, default=4, is_type_of=int, gte=0, lte=23), Validator('radarr.only_monitored', must_exist=True, default=False, is_type_of=bool), Validator('radarr.movies_sync', must_exist=True, default=60, is_type_of=int, - is_in=[15, 60, 180, 360, 720, 1440, ONE_HUNDRED_YEARS_IN_MINUTES]), + is_in=[15, 60, 180, 360, 720, 1440, 10080, ONE_HUNDRED_YEARS_IN_MINUTES]), Validator('radarr.excluded_tags', must_exist=True, default=[], is_type_of=list), Validator('radarr.use_ffprobe_cache', must_exist=True, default=True, is_type_of=bool), Validator('radarr.defer_search_signalr', must_exist=True, default=False, is_type_of=bool), diff --git a/frontend/src/pages/Settings/Scheduler/options.ts b/frontend/src/pages/Settings/Scheduler/options.ts index c2eadcbae..0b11a8226 100644 --- a/frontend/src/pages/Settings/Scheduler/options.ts +++ b/frontend/src/pages/Settings/Scheduler/options.ts @@ -8,6 +8,7 @@ export const seriesSyncOptions: SelectorOption[] = [ { label: "6 Hours", value: 360 }, { label: "12 Hours", value: 720 }, { label: "24 Hours", value: 1440 }, + { label: "Weekly", value: 10080 }, ]; export const moviesSyncOptions = seriesSyncOptions;