Updated jellyfin/emby allowed webhook events.

This commit is contained in:
Abdulmhsen B. A. A
2022-04-16 22:53:40 +03:00
parent 150ec0446e
commit 975586b0fc
3 changed files with 8 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ class EmbyServer extends JellyfinServer
'item.markplayed',
'item.markunplayed',
'playback.scrobble',
'playback.pause',
'playback.start',
'playback.stop',
];
protected const WEBHOOK_TAINTED_EVENTS = [
@@ -163,7 +166,7 @@ class EmbyServer extends JellyfinServer
...$guids
];
if (true === Config::get('webhook.debug')) {
if (true === Config::get('webhook.debug') || null !== ag($request->getQueryParams(), 'debug')) {
saveWebhookPayload($request, "{$this->name}.{$event}", $json + ['entity' => $row]);
}

View File

@@ -50,6 +50,8 @@ class JellyfinServer implements ServerInterface
protected const WEBHOOK_ALLOWED_EVENTS = [
'ItemAdded',
'UserDataSaved',
'PlaybackStart',
'PlaybackStop',
];
protected const WEBHOOK_TAINTED_EVENTS = [
@@ -322,7 +324,7 @@ class JellyfinServer implements ServerInterface
...$guids
];
if (true === Config::get('webhook.debug')) {
if (true === Config::get('webhook.debug') || null !== ag($request->getQueryParams(), 'debug')) {
saveWebhookPayload($request, "{$this->name}.{$event}", $json + ['entity' => $row]);
}

View File

@@ -358,7 +358,7 @@ class PlexServer implements ServerInterface
...$guids
];
if (true === Config::get('webhook.debug')) {
if (true === Config::get('webhook.debug') || null !== ag($request->getQueryParams(), 'debug')) {
saveWebhookPayload($request, "{$this->name}.{$event}", $json + ['entity' => $row]);
}