mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
join path with library path
This commit is contained in:
@@ -175,7 +175,9 @@ const normalizeSong = (
|
|||||||
lastPlayedAt: normalizePlayDate(item),
|
lastPlayedAt: normalizePlayDate(item),
|
||||||
lyrics: item.lyrics ? item.lyrics : null,
|
lyrics: item.lyrics ? item.lyrics : null,
|
||||||
name: item.title,
|
name: item.title,
|
||||||
path: item.path,
|
// Thankfully, Windows is merciful and allows a mix of separators. So, we can use the
|
||||||
|
// POSIX separator here instead
|
||||||
|
path: (item.libraryPath ? item.libraryPath + '/' : '') + item.path,
|
||||||
peak:
|
peak:
|
||||||
item.rgAlbumPeak || item.rgTrackPeak
|
item.rgAlbumPeak || item.rgTrackPeak
|
||||||
? { album: item.rgAlbumPeak, track: item.rgTrackPeak }
|
? { album: item.rgAlbumPeak, track: item.rgTrackPeak }
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ const song = z.object({
|
|||||||
id: z.string(),
|
id: z.string(),
|
||||||
imageFiles: z.string().optional(),
|
imageFiles: z.string().optional(),
|
||||||
largeImageUrl: z.string().optional(),
|
largeImageUrl: z.string().optional(),
|
||||||
|
libraryPath: z.string().optional(),
|
||||||
lyrics: z.string().optional(),
|
lyrics: z.string().optional(),
|
||||||
mbzAlbumArtistId: z.string().optional(),
|
mbzAlbumArtistId: z.string().optional(),
|
||||||
mbzAlbumId: z.string().optional(),
|
mbzAlbumId: z.string().optional(),
|
||||||
|
|||||||
Reference in New Issue
Block a user