From bbf348c1dcbb25b8f0ecc048ed9831fd21380593 Mon Sep 17 00:00:00 2001 From: Parker Date: Sat, 20 Jul 2024 00:22:01 -0500 Subject: Add ability to have simple passwords --- code/global_variables.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'code/global_variables.py') diff --git a/code/global_variables.py b/code/global_variables.py index 1edb012..26e5558 100644 --- a/code/global_variables.py +++ b/code/global_variables.py @@ -38,7 +38,8 @@ except FileNotFoundError: config["JELLYFIN_ACCOUNTS"] = { "JELLYFIN_URL": "", "JELLYFIN_API_KEY": "", - "ACCOUNT_TIME": "" + "ACCOUNT_TIME": "", + "SIMPLE_PASSWORDS": "", } with open("config.ini", "w") as configfile: @@ -74,3 +75,8 @@ JELLYFIN_HEADERS = { "Content-Type": "application/json", "X-Emby-Token": JELLYFIN_API_KEY, } + +if config["JELLYFIN_ACCOUNTS"]["SIMPLE_PASSWORDS"].lower() in YES_VALUES: + SIMPLE_PASSWORDS = True +else: + SIMPLE_PASSWORDS = False \ No newline at end of file -- cgit v1.2.3-70-g09d2