From 2971932b2a490d7fe702d82c54fe668647b08237 Mon Sep 17 00:00:00 2001 From: bullmoose20 <12549033+bullmoose20@users.noreply.github.com> Date: Wed, 19 Feb 2025 01:41:34 -0500 Subject: [PATCH] 391 bug sync up missing items from config yml template (#392) --- modules/helpers.py | 16 ++++++++++------ templates/020-tmdb.html | 2 +- templates/120-sonarr.html | 36 ++++++++++++++++++++++++++++++++++++ templates/140-mal.html | 13 +++++++++++++ templates/150-settings.html | 28 ++++++++++++++++++++++++++-- 5 files changed, 86 insertions(+), 9 deletions(-) diff --git a/modules/helpers.py b/modules/helpers.py index 0b57754..d3605d6 100644 --- a/modules/helpers.py +++ b/modules/helpers.py @@ -221,17 +221,21 @@ def build_oauth_dict(source, form_data): final_key = key.replace(source + "_", "", 1) value = form_data[key] - if ( - (final_key == "client_id") - or (final_key == "client_secret") - or (final_key == "pin") + if final_key in ( + "client_id", + "client_secret", + "pin", + "cache_expiration", + "localhost_url", ): - data[source][final_key] = value + data[source][final_key] = value # Store outside authorization elif final_key == "validated": data[final_key] = value else: if final_key != "url": - data[source]["authorization"][final_key] = value + data[source]["authorization"][ + final_key + ] = value # Everything else goes into authorization return data diff --git a/templates/020-tmdb.html b/templates/020-tmdb.html index 3b26147..397d180 100644 --- a/templates/020-tmdb.html +++ b/templates/020-tmdb.html @@ -70,7 +70,7 @@