aboutsummaryrefslogtreecommitdiff
path: root/code/global_variables.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-07-20 00:22:01 -0500
committerParker <contact@pkrm.dev>2024-07-20 00:22:01 -0500
commitbbf348c1dcbb25b8f0ecc048ed9831fd21380593 (patch)
treeeb51f8e150943a76e51ba8ca2bd8e1fc73f5386c /code/global_variables.py
parentbb77e85dedebf2a6e3656d4416b29f2d8cf9e2e5 (diff)
Add ability to have simple passwords
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