A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(plex): test connection not fully checking connection (#4617)
Meier Lukas6a908397cd8a
diff --git a/packages/integrations/src/plex/plex-integration.ts b/packages/integrations/src/plex/plex-integration.tsindex 982a617eb..ee5b9a6da 100644--- a/packages/integrations/src/plex/plex-integration.ts+++ b/packages/integrations/src/plex/plex-integration.ts@@ -169,17 +169,15 @@ export class PlexIntegration extends Integration implements IMediaServerIntegratprotected async testingAsync(input: IntegrationTestingInput): Promise<TestingResult> {const token = super.getSecretValue("apiKey");- const response = await input.fetchAsync(this.url("/"), {+ const response = await input.fetchAsync(super.url("/prefs"), {headers: {"X-Plex-Token": token,+ Accept: "application/json",},});if (!response.ok) return TestConnectionError.StatusResult(response);- const result = await response.text();-- await PlexIntegration.parseXmlAsync<PlexResponse>(result);return { success: true };}