enable comments, safer note

This commit is contained in:
Kendall Garner 2024-01-15 20:46:06 -08:00
parent 960427fce8
commit 5516daab6e
No known key found for this signature in database
GPG key ID: 18D2767419676C87
8 changed files with 62 additions and 14 deletions

View file

@ -154,6 +154,7 @@ const normalizeAlbum = (
albumArtists: [{ id: item.albumArtistId, imageUrl: null, name: item.albumArtist }],
artists: [{ id: item.artistId, imageUrl: null, name: item.artist }],
backdropImageUrl: imageBackdropUrl,
comment: item.comment || null,
createdAt: item.createdAt.split('T')[0],
duration: item.duration * 1000 || null,
genres: item.genres?.map((genre) => ({

View file

@ -111,6 +111,7 @@ const album = z.object({
allArtistIds: z.string(),
artist: z.string(),
artistId: z.string(),
comment: z.string().optional(),
compilation: z.boolean(),
coverArtId: z.string().optional(), // Removed after v0.48.0
coverArtPath: z.string().optional(), // Removed after v0.48.0