Skip to content

Commit

Permalink
Fixed improper page_size value that prevent series and movies page fr…
Browse files Browse the repository at this point in the history
…om loading. #1995
  • Loading branch information
morpheus65535 committed Dec 7, 2022
1 parent e6cab17 commit cc42e7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bazarr/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ def base_url_slash_cleaner(uri):
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)
Expand Down

0 comments on commit cc42e7b

Please sign in to comment.