Updated jellyfin/emby allowed webhook events.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user