pass all details into event triggers, updated custom script default path

This commit is contained in:
dekzter 2026-02-24 12:13:21 -05:00
parent 1f779b01aa
commit 9470600474
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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