|
|
|
@ -297,6 +297,11 @@ settings.general.base_url = base_url_slash_cleaner(uri=settings.general.base_url
|
|
|
|
|
settings.sonarr.base_url = base_url_slash_cleaner(uri=settings.sonarr.base_url)
|
|
|
|
|
settings.radarr.base_url = base_url_slash_cleaner(uri=settings.radarr.base_url)
|
|
|
|
|
|
|
|
|
|
# fixing issue with improper page_size value
|
|
|
|
|
if settings.general.page_size not in ['25', '50', '100', '250', '500', '1000']:
|
|
|
|
|
settings.general.page_size = defaults['general']['page_size']
|
|
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
|
settings.write(handle)
|
|
|
|
|