From 552e9109640360579992603175988767d8a97231 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Mon, 11 May 2026 23:14:15 +0200 Subject: [PATCH] music widget fix regex for track name --- copyparty/web/browser.css | 1 + copyparty/web/browser.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 24a3a477..01ac339a 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1657,6 +1657,7 @@ html.b #music { #mu_th img { opacity: 0; margin: 0 auto; + position: absolute; } #mu_tn { display: block; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index bea1d43e..d6131b1c 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -3888,7 +3888,7 @@ function play(tid, is_ev, seek) { afilt.apply(); // popup player - ebi('mu_tn').innerHTML = tname.replace(/\..*$/, ''); + ebi('mu_tn').innerHTML = tname.replace(/\.[0-9a-z]+$/i, ''); var m_ext = tname.match(/[^\.]*$/); if(m_ext){ QS('#mu_th>svg').style.color = intToHSL(hashCode(m_ext[0]))