1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix for when lyric.Start is 0

This commit is contained in:
LJQ 2024-05-07 02:26:19 +08:00 committed by Bill Thornton
parent 8a61ff890f
commit f6b9104cc2

View file

@ -41,7 +41,7 @@ function downloadRemoteLyrics(context, id) {
function getLyricsText(lyricsObject) {
return lyricsObject.reduce((htmlAccumulator, lyric) => {
if (lyric.Start) {
if (lyric.Start || lyric.Start === 0) {
const minutes = Math.floor(lyric.Start / 600000000);
const seconds = Math.floor((lyric.Start % 600000000) / 10000000);
const hundredths = Math.floor((lyric.Start % 10000000) / 100000);