From 6de2b8b57d23ab9a9e34ebf0b2f879e0e3302801 Mon Sep 17 00:00:00 2001 From: Parker Date: Sat, 18 May 2024 20:15:43 -0500 Subject: [PATCH] Add `ACCOUNT_TIME` to config creation --- code/global_variables.py | 6 +++++- code/validate_config.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/global_variables.py b/code/global_variables.py index bdc5860..1edb012 100644 --- a/code/global_variables.py +++ b/code/global_variables.py @@ -35,7 +35,11 @@ except FileNotFoundError: "ENABLE_JELLYFIN_TEMP_ACCOUNTS": "", } - config["JELLYFIN_ACCOUNTS"] = {"JELLYFIN_URL": "", "JELLYFIN_API_KEY": ""} + config["JELLYFIN_ACCOUNTS"] = { + "JELLYFIN_URL": "", + "JELLYFIN_API_KEY": "", + "ACCOUNT_TIME": "" + } with open("config.ini", "w") as configfile: config.write(configfile) diff --git a/code/validate_config.py b/code/validate_config.py index 191cb03..a79ff06 100644 --- a/code/validate_config.py +++ b/code/validate_config.py @@ -160,5 +160,6 @@ def create_config(): config["JELLYFIN_ACCOUNTS"] = { "JELLYFIN_URL": "", - "JELLYFIN_API_KEY": "" + "JELLYFIN_API_KEY": "", + "ACCOUNT_TIME": "" }