Fix Jellyfin album duration normalization (#191)
This commit is contained in:
parent
8e83beffcc
commit
93e00e7afb
2 changed files with 3 additions and 2 deletions
|
@ -201,7 +201,7 @@ const normalizeAlbum = (
|
||||||
})),
|
})),
|
||||||
backdropImageUrl: null,
|
backdropImageUrl: null,
|
||||||
createdAt: item.DateCreated,
|
createdAt: item.DateCreated,
|
||||||
duration: item.RunTimeTicks / 10000,
|
duration: item.RunTimeTicks / 10000000,
|
||||||
genres: item.GenreItems?.map((entry) => ({ id: entry.Id, name: entry.Name })),
|
genres: item.GenreItems?.map((entry) => ({ id: entry.Id, name: entry.Name })),
|
||||||
id: item.Id,
|
id: item.Id,
|
||||||
imagePlaceholderUrl: null,
|
imagePlaceholderUrl: null,
|
||||||
|
|
|
@ -37,7 +37,8 @@ export const AlbumDetailHeader = forwardRef(
|
||||||
id: 'duration',
|
id: 'duration',
|
||||||
secondary: false,
|
secondary: false,
|
||||||
value:
|
value:
|
||||||
detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration),
|
detailQuery?.data?.duration &&
|
||||||
|
formatDurationString(detailQuery.data.duration * 1000),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Reference in a new issue