mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Fix Jellyfin album duration normalization (#191)
This commit is contained in:
@@ -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 New Issue
Block a user