0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00
This commit is contained in:
2025-12-13 19:30:54 +01:00
parent 6c87588e16
commit 3a46e48446

View File

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