mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[12] Ignore empty Environment Variables
This commit is contained in:
parent
26127aa79d
commit
54c0128893
3 changed files with 7 additions and 5 deletions
|
@ -15,5 +15,6 @@ Fixed `amazon` ID in `streaming` when region is `CA`
|
|||
# Bug Fixes
|
||||
Catch bad ID data from Plex
|
||||
Fixes `- git` file calls
|
||||
Ignore empty Environment Variables
|
||||
|
||||
Various other Minor Fixes
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.0-develop11
|
||||
2.0.0-develop12
|
||||
|
|
|
@ -141,6 +141,7 @@ plex_token = get_env("KOMETA_PLEX_TOKEN", plex_token)
|
|||
|
||||
env_secrets = []
|
||||
for env_name, env_data in os.environ.items():
|
||||
if env_data is not None and str(env_data).strip():
|
||||
if str(env_name).upper().startswith("KOMETA_") and str(env_name).upper() not in static_envs:
|
||||
secret_args[str(env_name).lower()[7:].replace("_", "-")] = env_data
|
||||
elif str(env_name).upper().startswith("PMM_") and str(env_name).upper() not in static_envs:
|
||||
|
|
Loading…
Reference in a new issue