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

Merge pull request #4577 from hadicharara/bugfix/fixed-remote-control-player-time-display-bug

Fix for position time bug for remote control player
This commit is contained in:
Bill Thornton 2023-05-09 10:31:29 -04:00 committed by GitHub
commit 397161f902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,8 +472,8 @@ export default function () {
}
}
context.querySelector('.positionTime').innerHTML = positionTicks == null ? '--:--' : datetime.getDisplayRunningTime(positionTicks);
context.querySelector('.runtime').innerHTML = runtimeTicks != null ? datetime.getDisplayRunningTime(runtimeTicks) : '--:--';
context.querySelector('.positionTime').innerHTML = Number.isFinite(positionTicks) ? datetime.getDisplayRunningTime(positionTicks) : '--:--';
context.querySelector('.runtime').innerHTML = Number.isFinite(runtimeTicks) ? datetime.getDisplayRunningTime(runtimeTicks) : '--:--';
}
function getPlaylistItems(player) {