mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
join path with library path
This commit is contained in:
parent
ce6aaa709f
commit
6f5dd4881a
2 changed files with 4 additions and 1 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue