1
0
Fork 0
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:
BrianCArnold 2021-04-12 10:38:08 -04:00 committed by GitHub
parent 842fb086b9
commit 115684f7dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,10 +258,9 @@ import '../../elements/emby-button/emby-button';
miscInfo.push(datetime.getDisplayRunningTime(item.RunTimeTicks));
} else {
const ticksPerMinute = 600000000;
let totalMinutes = Math.floor(ticks/ticksPerMinute);
totalMinutes = totalMinutes || 1;
let totalHours = Math.floor(totalMinutes / 60);
let remainderMinutes = totalMinutes % 60;
const totalMinutes = Math.floor(item.RunTimeTicks/ticksPerMinute) || 1;
const totalHours = Math.floor(totalMinutes / 60);
const remainderMinutes = totalMinutes % 60;
result = [];
if (totalHours > 0) {
result.push(`${totalHours} hrs`);