mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 14:22:46 +02:00
add releaseType to album header
This commit is contained in:
@@ -304,6 +304,7 @@ const normalizeAlbum = (
|
||||
originalDate: item.originalDate || null,
|
||||
playCount: item.playCount || 0,
|
||||
releaseDate: normalizeReleaseDate(item),
|
||||
releaseType: item.mbzAlbumType || null,
|
||||
releaseYear: item.maxYear || null,
|
||||
size: item.size,
|
||||
songCount: item.songCount,
|
||||
|
||||
@@ -440,6 +440,7 @@ const album = z.object({
|
||||
allArtistIds: z.string(),
|
||||
artist: z.string(),
|
||||
artistId: z.string(),
|
||||
catalogNum: z.string().optional(),
|
||||
comment: z.string().optional(),
|
||||
compilation: z.boolean(),
|
||||
coverArtId: z.string().optional(), // Removed after v0.48.0
|
||||
@@ -447,13 +448,21 @@ const album = z.object({
|
||||
createdAt: z.string(),
|
||||
duration: z.number().optional(),
|
||||
explicitStatus: z.string().optional(),
|
||||
externalInfoUpdatedAt: z.string().optional(),
|
||||
externalUrl: z.string().optional(),
|
||||
fullText: z.string(),
|
||||
genre: z.string(),
|
||||
genres: z.array(genre).nullable(),
|
||||
id: z.string(),
|
||||
importedAt: z.string().optional(),
|
||||
libraryId: z.number(),
|
||||
libraryName: z.string(),
|
||||
libraryPath: z.string(),
|
||||
maxYear: z.number(),
|
||||
mbzAlbumArtistId: z.string().optional(),
|
||||
mbzAlbumId: z.string().optional(),
|
||||
mbzAlbumType: z.string().optional(),
|
||||
mbzReleaseGroupId: z.string().optional(),
|
||||
minYear: z.number(),
|
||||
name: z.string(),
|
||||
orderAlbumArtistName: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user