music widget fix regex for track name

This commit is contained in:
Til Schmitter 2026-05-11 23:14:15 +02:00
parent 58c1d980a1
commit 552e910964
2 changed files with 2 additions and 1 deletions

View file

@ -1657,6 +1657,7 @@ html.b #music {
#mu_th img {
opacity: 0;
margin: 0 auto;
position: absolute;
}
#mu_tn {
display: block;

View file

@ -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]))