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

consolidate datetime methods

This commit is contained in:
Luke Pulverenti 2016-05-05 23:09:36 -04:00
parent 8225003fd5
commit 7b625ade86
9 changed files with 231 additions and 278 deletions

View file

@ -411,7 +411,7 @@
if (session.TranscodingInfo && session.TranscodingInfo.Framerate) {
html += ' - '+session.TranscodingInfo.Framerate + ' fps';
html += ' - ' + session.TranscodingInfo.Framerate + ' fps';
}
}
else if (session.PlayState.PlayMethod == 'DirectStream') {
@ -465,7 +465,7 @@
var html = '';
if (session.PlayState.PositionTicks) {
html += Dashboard.getDisplayTime(session.PlayState.PositionTicks);
html += datetime.getDisplayRunningTime(session.PlayState.PositionTicks);
} else {
html += '--:--:--';
}
@ -475,7 +475,7 @@
var nowPlayingItem = session.NowPlayingItem;
if (nowPlayingItem && nowPlayingItem.RunTimeTicks) {
html += Dashboard.getDisplayTime(nowPlayingItem.RunTimeTicks);
html += datetime.getDisplayRunningTime(nowPlayingItem.RunTimeTicks);
} else {
html += '--:--:--';
}