|
|
|
@ -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']),
|
|
|
|
|