Fix nd/jf duration normalizations

This commit is contained in:
jeffvli 2023-09-15 16:52:14 -07:00
parent 5e33212112
commit 153d8ce6ce
4 changed files with 4 additions and 4 deletions

View file

@ -150,7 +150,7 @@ const normalizeSong = (
container: (item.MediaSources && item.MediaSources[0]?.Container) || null,
createdAt: item.DateCreated,
discNumber: (item.ParentIndexNumber && item.ParentIndexNumber) || 1,
duration: item.RunTimeTicks / 10000000,
duration: item.RunTimeTicks / 10000,
genres: item.GenreItems?.map((entry) => ({
id: entry.Id,
imageUrl: null,

View file

@ -89,7 +89,7 @@ const normalizeSong = (
container: item.suffix,
createdAt: item.createdAt.split('T')[0],
discNumber: item.discNumber,
duration: item.duration,
duration: item.duration * 1000,
genres: item.genres?.map((genre) => ({
id: genre.id,
imageUrl: null,