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:
parent
8a61ff890f
commit
f6b9104cc2
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function downloadRemoteLyrics(context, id) {
|
||||||
|
|
||||||
function getLyricsText(lyricsObject) {
|
function getLyricsText(lyricsObject) {
|
||||||
return lyricsObject.reduce((htmlAccumulator, lyric) => {
|
return lyricsObject.reduce((htmlAccumulator, lyric) => {
|
||||||
if (lyric.Start) {
|
if (lyric.Start || lyric.Start === 0) {
|
||||||
const minutes = Math.floor(lyric.Start / 600000000);
|
const minutes = Math.floor(lyric.Start / 600000000);
|
||||||
const seconds = Math.floor((lyric.Start % 600000000) / 10000000);
|
const seconds = Math.floor((lyric.Start % 600000000) / 10000000);
|
||||||
const hundredths = Math.floor((lyric.Start % 10000000) / 100000);
|
const hundredths = Math.floor((lyric.Start % 10000000) / 100000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue