remove imageUrl in favor or imageId for artistInfo

This commit is contained in:
jeffvli
2026-04-04 21:52:44 -07:00
parent 19a1617a8d
commit a8954bfa2a
4 changed files with 6 additions and 6 deletions
@@ -297,8 +297,8 @@ export const NavidromeController: InternalControllerEndpoint = {
similarArtists:
artistInfo?.similarArtist?.map((artist) => ({
id: artist.id,
imageId: null,
imageUrl: artist?.artistImageUrl?.replace(/\?size=\d+/, '') ?? null,
imageId: artist.id,
imageUrl: null,
name: artist.name,
userFavorite: Boolean(artist.starred) || false,
userRating: artist.userRating ?? null,
@@ -487,7 +487,7 @@ export const SubsonicController: InternalControllerEndpoint = {
similarArtists:
artistInfo?.similarArtist?.map((artist) => ({
id: artist.id,
imageId: null,
imageId: artist.coverArt ?? artist.id,
imageUrl: null,
name: artist.name,
userFavorite: Boolean(artist.starred) || false,
@@ -444,8 +444,8 @@ const normalizeAlbumArtist = (
similarArtists:
item.similarArtists?.map((artist) => ({
id: artist.id,
imageId: null,
imageUrl: artist?.artistImageUrl?.replace(/\?size=\d+/, '') || null,
imageId: artist.id,
imageUrl: null,
name: artist.name,
userFavorite: Boolean(artist.starred) || false,
userRating: artist.userRating || null,
@@ -277,7 +277,7 @@ const normalizeAlbumArtist = (
similarArtists:
item.similarArtists?.map((artist) => ({
id: artist.id,
imageId: null,
imageId: artist.coverArt ?? artist.id,
imageUrl: null,
name: artist.name,
userFavorite: Boolean(artist.starred) || false,