From 09b0794102a39ca40cf0ae8859578f81fa5c15ab Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 9 Jun 2022 03:43:29 +0300 Subject: [PATCH] Update update.js --- scripts/commands/database/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commands/database/update.js b/scripts/commands/database/update.js index 414bdf054a..92a7d86343 100644 --- a/scripts/commands/database/update.js +++ b/scripts/commands/database/update.js @@ -138,9 +138,9 @@ function parseMediaInfo(streams) { function parseFrameRate(r_frame_rate = '0/0') { const parts = r_frame_rate.split('/') - const number = parseInt(parts[0]) + const number = parseInt(parts[0]) / parseInt(parts[1]) - return number > 10000 ? number / 1000 : number + return Math.round(number * 100) / 100 } function parseStatus(error) {