Removed WS_PUSH_ENABLED as its always on now, and turn WS_SYNC_PROGRESS on by default.

This commit is contained in:
ArabCoders
2025-02-03 12:00:35 +03:00
parent 2d5c63ea69
commit 225ff0b768
4 changed files with 5 additions and 20 deletions

7
FAQ.md
View File

@@ -608,9 +608,10 @@ Those are some webhook limitations we discovered for the following media backend
* Emby does not send webhooks events for newly added items.
~~[See feature request](https://emby.media/community/index.php?/topic/97889-new-content-notification-webhook/)~~
implemented in `4.7.9` still does not work as expected no metadata being sent when the item notification goes out.
* Emby webhook test event does not contain data. To test if your setup works, play something or do mark an item as
played or unplayed you should see changes reflected in `docker exec -ti watchstate console db:list`.
implemented in `4.7.9` ~~still does not work as expected no metadata being sent when the item notification goes out.
* Emby webhook test event does not contain data~~. It seems to have been fixed in `4.9.0.37+` To test if your setup
works, play something or do mark an item as played or unplayed you should see changes reflected in
`docker exec -ti watchstate console db:list`.
#### Jellyfin

View File

@@ -74,10 +74,7 @@ return (function () {
'header' => (string)env('WS_TRUST_HEADER', 'X-Forwarded-For'),
],
'sync' => [
'progress' => (bool)env('WS_SYNC_PROGRESS', false),
],
'push' => [
'enabled' => (bool)env('WS_PUSH_ENABLED', false),
'progress' => (bool)env('WS_SYNC_PROGRESS', true),
],
];

View File

@@ -166,11 +166,6 @@ return (function () {
'description' => 'Enable watch progress sync.',
'type' => 'bool',
],
[
'key' => 'WS_PUSH_ENABLED',
'description' => 'Enable Push play state to backends. This feature depends on webhooks being enabled.',
'type' => 'bool',
],
[
'key' => 'WS_PROFILER_COLLECTOR',
'description' => 'The XHProf data collector URL to send the profiler data to.',

View File

@@ -567,14 +567,6 @@ if (!function_exists('queuePush')) {
{
$logger = Container::get(iLogger::class);
if (false === (bool)Config::get('push.enabled', false)) {
$logger->debug("Push is disabled. Unable to push '{via}: {entity}'.", [
'via' => $entity->via,
'entity' => $entity->getName()
]);
return;
}
if (!$entity->id) {
$logger->error("Unable to push event '{via}: {entity}'. It has no local id yet.", [
'via' => $entity->via,