From 75b1796205364237c090ddec1d5bc8d8d2ca3bb2 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 30 Oct 2017 16:43:34 -0300 Subject: Add missing percent symbol to mpv status line --- src/loop-play.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/loop-play.js b/src/loop-play.js index dbc0ba8..4902fd7 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -96,7 +96,9 @@ class MPVPlayer extends Player { const curSecTotal = (3600 * curHour) + (60 * curMin) + (1 * curSec) const lenSecTotal = (3600 * lenHour) + (60 * lenMin) + (1 * lenSec) const percentVal = (100 / lenSecTotal) * curSecTotal - const percentStr = (Math.trunc(percentVal * 100) / 100).toFixed(2) + const percentStr = ( + (Math.trunc(percentVal * 100) / 100).toFixed(2) + '%' + ) this.printStatusLine(createStatusLine({percentStr, curStr, lenStr})) } -- cgit 1.3.0-6-gf8a5