From 3a46e484464ee17257cf1388522a5f7e99acc7a3 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 13 Dec 2025 19:30:54 +0100 Subject: [PATCH] js? --- modules/web.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web.html b/modules/web.html index 23111f1..5801987 100644 --- a/modules/web.html +++ b/modules/web.html @@ -241,7 +241,8 @@ function formatTime(s){ s = Number(s||0); const h = Math.floor(s/3600), m = Math.floor((s%3600)/60), sec = Math.floor(s%60); - return [h,m,sec].map(x => String(x).padStart(2,'0')).join(":"); + if(h != 0) return [h,m,sec].map(x => String(x).padStart(2,'0')).join(":"); + else return [m,sec].map(x => String(x).padStart(2,'0')).join(":"); } function renderPlaylist(){