From 9470600474ae0d7a50cc0e982ecfc6edde786d72 Mon Sep 17 00:00:00 2001 From: dekzter Date: Tue, 24 Feb 2026 12:13:21 -0500 Subject: [PATCH 1/2] pass all details into event triggers, updated custom script default path --- core/utils.py | 2 +- dispatcharr/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils.py b/core/utils.py index bd80782e..744a2c89 100644 --- a/core/utils.py +++ b/core/utils.py @@ -404,7 +404,7 @@ def dispatch_event_system(event_type, channel_id=None, channel_name=None, **deta from core.models import StreamProfile from core.utils import RedisClient - payload = {} + payload = dict(details) channel_obj = None if channel_id: diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index 1fbf566b..37010f2a 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -415,7 +415,7 @@ LOGGING = { # Connect script execution safety settings # Allowed base directories for custom scripts; real paths must be inside -_allowed_dirs_env = os.environ.get("DISPATCHARR_ALLOWED_SCRIPT_DIRS", "/data/plugins") +_allowed_dirs_env = os.environ.get("DISPATCHARR_ALLOWED_SCRIPT_DIRS", "/data/scripts") CONNECT_ALLOWED_SCRIPT_DIRS = [p for p in _allowed_dirs_env.split(":") if p] # Max execution time (seconds) for scripts From 9bd9985d63db74af4a12032b01a6965fd312e9f6 Mon Sep 17 00:00:00 2001 From: dekzter Date: Tue, 24 Feb 2026 12:19:41 -0500 Subject: [PATCH 2/2] remove empty keys --- core/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/utils.py b/core/utils.py index 744a2c89..2c5f8ea7 100644 --- a/core/utils.py +++ b/core/utils.py @@ -464,6 +464,11 @@ def dispatch_event_system(event_type, channel_id=None, channel_name=None, **deta payload["profile_used"] = profile_used + # remove empty keys + for k in list(payload.keys()): + if not payload[k]: + del payload[k] + trigger_event(event_type, payload) except Exception as e: