mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove imageUrl in favor or imageId for artistInfo
This commit is contained in:
@@ -297,8 +297,8 @@ export const NavidromeController: InternalControllerEndpoint = {
|
|||||||
similarArtists:
|
similarArtists:
|
||||||
artistInfo?.similarArtist?.map((artist) => ({
|
artistInfo?.similarArtist?.map((artist) => ({
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
imageId: null,
|
imageId: artist.id,
|
||||||
imageUrl: artist?.artistImageUrl?.replace(/\?size=\d+/, '') ?? null,
|
imageUrl: null,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
userFavorite: Boolean(artist.starred) || false,
|
userFavorite: Boolean(artist.starred) || false,
|
||||||
userRating: artist.userRating ?? null,
|
userRating: artist.userRating ?? null,
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
|||||||
similarArtists:
|
similarArtists:
|
||||||
artistInfo?.similarArtist?.map((artist) => ({
|
artistInfo?.similarArtist?.map((artist) => ({
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
imageId: null,
|
imageId: artist.coverArt ?? artist.id,
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
userFavorite: Boolean(artist.starred) || false,
|
userFavorite: Boolean(artist.starred) || false,
|
||||||
|
|||||||
@@ -444,8 +444,8 @@ const normalizeAlbumArtist = (
|
|||||||
similarArtists:
|
similarArtists:
|
||||||
item.similarArtists?.map((artist) => ({
|
item.similarArtists?.map((artist) => ({
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
imageId: null,
|
imageId: artist.id,
|
||||||
imageUrl: artist?.artistImageUrl?.replace(/\?size=\d+/, '') || null,
|
imageUrl: null,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
userFavorite: Boolean(artist.starred) || false,
|
userFavorite: Boolean(artist.starred) || false,
|
||||||
userRating: artist.userRating || null,
|
userRating: artist.userRating || null,
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ const normalizeAlbumArtist = (
|
|||||||
similarArtists:
|
similarArtists:
|
||||||
item.similarArtists?.map((artist) => ({
|
item.similarArtists?.map((artist) => ({
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
imageId: null,
|
imageId: artist.coverArt ?? artist.id,
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
userFavorite: Boolean(artist.starred) || false,
|
userFavorite: Boolean(artist.starred) || false,
|
||||||
|
|||||||
Reference in New Issue
Block a user