fix: jellyfin integration does not allow username password auth (#1714)

This commit is contained in:
Manuel
2024-12-18 14:10:58 +01:00
committed by GitHub
parent 1baa9fc74c
commit 63a7be35a4
2 changed files with 23 additions and 5 deletions

View File

@@ -29,6 +29,10 @@ export abstract class Integration {
return secret.value;
}
protected hasSecretValue(kind: IntegrationSecretKind) {
return this.integration.decryptedSecrets.some((secret) => secret.kind === kind);
}
protected url(path: `/${string}`, queryParams?: Record<string, string | Date | number | boolean>) {
const baseUrl = removeTrailingSlash(this.integration.url);
const url = new URL(`${baseUrl}${path}`);