From 446f7e6b69aad1a913de2682b2d77b7a023bff4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mitja=20=C5=A0everkar?= Date: Tue, 19 Nov 2024 23:57:17 +0000 Subject: [PATCH] Revert "Encode credential for subsonic stream/coverart (#841)" This reverts commit 8ec4551b46ff532d3790f23faa63f7ee472ffa33. --- src/renderer/api/subsonic/subsonic-normalize.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/renderer/api/subsonic/subsonic-normalize.ts b/src/renderer/api/subsonic/subsonic-normalize.ts index 3465fec9..43a4aad4 100644 --- a/src/renderer/api/subsonic/subsonic-normalize.ts +++ b/src/renderer/api/subsonic/subsonic-normalize.ts @@ -24,15 +24,14 @@ const getCoverArtUrl = (args: { return null; } - const url = + return ( `${args.baseUrl}/rest/getCoverArt.view` + `?id=${args.coverArtId}` + - `&${encodeURIComponent(args.credential || '')}` + + `&${args.credential}` + '&v=1.13.0' + '&c=feishin' + - `&size=${size}`; - - return url; + `&size=${size}` + ); }; const normalizeSong = ( @@ -49,7 +48,7 @@ const normalizeSong = ( size: size || 300, }) || null; - const streamUrl = `${server?.url}/rest/stream.view?id=${item.id}&v=1.13.0&c=feishin_${deviceId}&${encodeURIComponent(server?.credential || '')}`; + const streamUrl = `${server?.url}/rest/stream.view?id=${item.id}&v=1.13.0&c=feishin_${deviceId}&${server?.credential}`; return { album: item.album || '',