Increased minimum subtitles search and upgrade frequencies to 6 hours instead of 3 to reduce the impact on providers' website.

This commit is contained in:
morpheus65535 2023-02-08 17:00:37 -05:00
parent c3406357f1
commit d39f41d7e2
2 changed files with 8 additions and 3 deletions

View File

@ -74,8 +74,8 @@ defaults = {
'days_to_upgrade_subs': '7',
'upgrade_manual': 'True',
'anti_captcha_provider': 'None',
'wanted_search_frequency': '3',
'wanted_search_frequency_movie': '3',
'wanted_search_frequency': '6',
'wanted_search_frequency_movie': '6',
'subzero_mods': '[]',
'dont_notify_manual_actions': 'False',
'hi_extension': 'hi',
@ -315,6 +315,12 @@ settings.radarr.base_url = base_url_slash_cleaner(uri=settings.radarr.base_url)
if settings.general.page_size not in ['25', '50', '100', '250', '500', '1000']:
settings.general.page_size = defaults['general']['page_size']
# increase delay between searches to reduce impact on providers
if settings.general.wanted_search_frequency == '3':
settings.general.wanted_search_frequency = '6'
if settings.general.wanted_search_frequency_movie == '3':
settings.general.wanted_search_frequency_movie = '6'
# save updated settings to file
if os.path.exists(os.path.join(args.config_dir, 'config', 'config.ini')):
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:

View File

@ -32,7 +32,6 @@ export const dayOptions: SelectorOption<number>[] = [
];
export const upgradeOptions: SelectorOption<number>[] = [
{ label: "3 Hours", value: 3 },
{ label: "6 Hours", value: 6 },
{ label: "12 Hours", value: 12 },
{ label: "24 Hours", value: 24 },