Add additional song types

This commit is contained in:
jeffvli 2022-12-27 02:00:39 -08:00
parent e94783820e
commit d1c038ea6f
4 changed files with 26 additions and 3 deletions

View file

@ -455,6 +455,8 @@ const normalizeSong = (
artistName: item.artist,
artists: [{ id: item.artistId, name: item.artist }],
bitRate: item.bitRate,
bpm: item.bpm ? item.bpm : null,
channels: item.channels ? item.channels : null,
compilation: item.compilation,
container: item.suffix,
createdAt: item.createdAt.split('T')[0],
@ -464,7 +466,9 @@ const normalizeSong = (
id: item.id,
imageUrl,
isFavorite: item.starred,
lastPlayedAt: item.playDate ? item.playDate : null,
name: item.title,
note: item.comment ? item.comment : null,
path: item.path,
playCount: item.playCount,
releaseDate: new Date(item.year, 0, 1).toISOString(),