mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
Added Weekly option to Search and Upgrade Subtitles settings
This commit is contained in:
parent
8e78559325
commit
7dbc3cb17c
2 changed files with 5 additions and 3 deletions
|
@ -129,14 +129,15 @@ validators = [
|
|||
Validator('general.subfolder_custom', must_exist=True, default='', is_type_of=str),
|
||||
Validator('general.upgrade_subs', must_exist=True, default=True, is_type_of=bool),
|
||||
Validator('general.upgrade_frequency', must_exist=True, default=12, is_type_of=int,
|
||||
is_in=[6, 12, 24, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
is_in=[6, 12, 24, 168, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
Validator('general.days_to_upgrade_subs', must_exist=True, default=7, is_type_of=int, gte=0, lte=30),
|
||||
Validator('general.upgrade_manual', must_exist=True, default=True, is_type_of=bool),
|
||||
Validator('general.anti_captcha_provider', must_exist=True, default=None, is_type_of=(NoneType, str),
|
||||
is_in=[None, 'anti-captcha', 'death-by-captcha']),
|
||||
Validator('general.wanted_search_frequency', must_exist=True, default=6, is_type_of=int, is_in=[6, 12, 24, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
Validator('general.wanted_search_frequency', must_exist=True, default=6, is_type_of=int,
|
||||
is_in=[6, 12, 24, 168, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
Validator('general.wanted_search_frequency_movie', must_exist=True, default=6, is_type_of=int,
|
||||
is_in=[6, 12, 24, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
is_in=[6, 12, 24, 168, ONE_HUNDRED_YEARS_IN_HOURS]),
|
||||
Validator('general.subzero_mods', must_exist=True, default='', is_type_of=str),
|
||||
Validator('general.dont_notify_manual_actions', must_exist=True, default=False, is_type_of=bool),
|
||||
Validator('general.hi_extension', must_exist=True, default='hi', is_type_of=str, is_in=['hi', 'cc', 'sdh']),
|
||||
|
|
|
@ -36,4 +36,5 @@ export const upgradeOptions: SelectorOption<number>[] = [
|
|||
{ label: "6 Hours", value: 6 },
|
||||
{ label: "12 Hours", value: 12 },
|
||||
{ label: "24 Hours", value: 24 },
|
||||
{ label: "Weekly", value: 168 },
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue