Fix normalized album duration values (#205)
This commit is contained in:
parent
663893dccb
commit
877b2e9f3b
2 changed files with 2 additions and 3 deletions
|
@ -208,7 +208,7 @@ const normalizeAlbum = (
|
||||||
})),
|
})),
|
||||||
backdropImageUrl: null,
|
backdropImageUrl: null,
|
||||||
createdAt: item.DateCreated,
|
createdAt: item.DateCreated,
|
||||||
duration: item.RunTimeTicks / 10000000,
|
duration: item.RunTimeTicks / 10000,
|
||||||
genres: item.GenreItems?.map((entry) => ({
|
genres: item.GenreItems?.map((entry) => ({
|
||||||
id: entry.Id,
|
id: entry.Id,
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
|
|
|
@ -37,8 +37,7 @@ export const AlbumDetailHeader = forwardRef(
|
||||||
id: 'duration',
|
id: 'duration',
|
||||||
secondary: false,
|
secondary: false,
|
||||||
value:
|
value:
|
||||||
detailQuery?.data?.duration &&
|
detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration),
|
||||||
formatDurationString(detailQuery.data.duration * 1000),
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Reference in a new issue