Cover art support for folder view (Subsonic servers only) (#1608)

* add coverArt support for subsonic folders
This commit is contained in:
marank
2026-01-24 06:26:51 +01:00
committed by GitHub
parent c79e041777
commit f016d2cdf4
5 changed files with 10 additions and 1 deletions
@@ -399,6 +399,8 @@ const normalizeFolder = (
songs: results?.songs || [],
},
id: item.id.toString(),
imageId: item.coverArt?.toString() || null,
imageUrl: null,
name: item.title,
parentId: item.parent,
};
@@ -613,6 +613,7 @@ const getIndexes = z.object({
.object({
artist: z
.object({
coverArt: z.string().optional(),
id: z.string(),
name: z.string(),
})
+2
View File
@@ -257,6 +257,8 @@ export type Folder = {
songs: Song[];
};
id: string;
imageId?: null | string;
imageUrl?: null | string;
name: string;
parentId?: string;
};