summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-12-07 06:38:43 -0500
committermorpheus65535 <[email protected]>2022-12-07 06:38:43 -0500
commitcc42e7bc5c8011a544bb5968b67b56347d0cb224 (patch)
tree4f9a577a0e7133cd73debe2f06f3e8ffd50c290c
parente6cab17a2942360cac30784775db2f4fd16afaa6 (diff)
downloadbazarr-cc42e7bc5c8011a544bb5968b67b56347d0cb224.tar.gz
bazarr-cc42e7bc5c8011a544bb5968b67b56347d0cb224.zip
Fixed improper page_size value that prevent series and movies page from loading. #1995v1.1.4-beta.1
-rw-r--r--bazarr/app/config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bazarr/app/config.py b/bazarr/app/config.py
index ce4d0e3a5..faee369e1 100644
--- a/bazarr/app/config.py
+++ b/bazarr/app/config.py
@@ -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)