mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-12 15:22:35 +02:00
Fix normalized album duration values (#205)
This commit is contained in:
@@ -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 New Issue
Block a user