Skip to content

Commit

Permalink
Revert "Encode credential for subsonic stream/coverart (#841)"
Browse files Browse the repository at this point in the history
This reverts commit 8ec4551.
  • Loading branch information
mytja committed Nov 19, 2024
1 parent fac1d3f commit 446f7e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/renderer/api/subsonic/subsonic-normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand All @@ -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 || '',
Expand Down

0 comments on commit 446f7e6

Please sign in to comment.