Skip to content

Commit

Permalink
Add deprecation to plex webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Sep 30, 2023
1 parent 6059514 commit eead7ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/HttpController/Web/JellyfinController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public function handleJellyfinWebhook(Request $request) : Response
return Response::createOk();
}


public function regenerateJellyfinWebhookUrl() : Response
{
$webhookId = $this->userApi->regenerateJellyfinWebhookId($this->authenticationService->getCurrentUserId());
Expand Down
5 changes: 5 additions & 0 deletions src/HttpController/Web/PlexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public function generatePlexAuthenticationUrl() : Response
return Response::createJson(Json::encode(['authenticationUrl' => $plexAuthenticationUrl]));
}

/**
* @deprecated
* @see \Movary\HttpController\Api\PlexController::handlePlexWebhook()
*/
public function handlePlexWebhook(Request $request) : Response
{
$webhookId = $request->getRouteParameters()['id'];
Expand All @@ -68,6 +72,7 @@ public function handlePlexWebhook(Request $request) : Response
}

$this->logger->debug('Plex: Webhook triggered with payload: ' . $requestPayload);
$this->logger->warning('This plex webhook url is deprecated and will stop to work soon, regenerate the url');

$this->plexScrobbler->processPlexWebhook($userId, Json::decode((string)$requestPayload));

Expand Down

0 comments on commit eead7ad

Please sign in to comment.