mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update mediainfo.js
Fix missing const keyword and spacing on operator.
This commit is contained in:
parent
6a828074ae
commit
62a791fad5
1 changed files with 2 additions and 2 deletions
|
@ -258,10 +258,10 @@ import '../../elements/emby-button/emby-button';
|
|||
miscInfo.push(datetime.getDisplayRunningTime(item.RunTimeTicks));
|
||||
} else {
|
||||
const ticksPerMinute = 600000000;
|
||||
const totalMinutes = Math.floor(item.RunTimeTicks/ticksPerMinute) || 1;
|
||||
const totalMinutes = Math.floor(item.RunTimeTicks / ticksPerMinute) || 1;
|
||||
const totalHours = Math.floor(totalMinutes / 60);
|
||||
const remainderMinutes = totalMinutes % 60;
|
||||
result = [];
|
||||
const result = [];
|
||||
if (totalHours > 0) {
|
||||
result.push(`${totalHours} hrs`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue