mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update mediainfo.js
Fix typo regarding source of Ticks
This commit is contained in:
parent
842fb086b9
commit
115684f7dd
1 changed files with 3 additions and 4 deletions
|
@ -258,10 +258,9 @@ import '../../elements/emby-button/emby-button';
|
||||||
miscInfo.push(datetime.getDisplayRunningTime(item.RunTimeTicks));
|
miscInfo.push(datetime.getDisplayRunningTime(item.RunTimeTicks));
|
||||||
} else {
|
} else {
|
||||||
const ticksPerMinute = 600000000;
|
const ticksPerMinute = 600000000;
|
||||||
let totalMinutes = Math.floor(ticks/ticksPerMinute);
|
const totalMinutes = Math.floor(item.RunTimeTicks/ticksPerMinute) || 1;
|
||||||
totalMinutes = totalMinutes || 1;
|
const totalHours = Math.floor(totalMinutes / 60);
|
||||||
let totalHours = Math.floor(totalMinutes / 60);
|
const remainderMinutes = totalMinutes % 60;
|
||||||
let remainderMinutes = totalMinutes % 60;
|
|
||||||
result = [];
|
result = [];
|
||||||
if (totalHours > 0) {
|
if (totalHours > 0) {
|
||||||
result.push(`${totalHours} hrs`);
|
result.push(`${totalHours} hrs`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue