aboutsummaryrefslogtreecommitdiff
path: root/code/global_variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/global_variables.py')
-rw-r--r--code/global_variables.py8
1 files changed, 7 insertions, 1 deletions
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