mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Fix Jellyfin album duration normalization (#191)
This commit is contained in:
parent
8e83beffcc
commit
93e00e7afb
@ -201,7 +201,7 @@ const normalizeAlbum = (
|
||||
})),
|
||||
backdropImageUrl: null,
|
||||
createdAt: item.DateCreated,
|
||||
duration: item.RunTimeTicks / 10000,
|
||||
duration: item.RunTimeTicks / 10000000,
|
||||
genres: item.GenreItems?.map((entry) => ({ id: entry.Id, name: entry.Name })),
|
||||
id: item.Id,
|
||||
imagePlaceholderUrl: null,
|
||||
|
@ -37,7 +37,8 @@ export const AlbumDetailHeader = forwardRef(
|
||||
id: 'duration',
|
||||
secondary: false,
|
||||
value:
|
||||
detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration),
|
||||
detailQuery?.data?.duration &&
|
||||
formatDurationString(detailQuery.data.duration * 1000),
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user