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(){