mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
music widget fix regex for track name
This commit is contained in:
parent
58c1d980a1
commit
552e910964
|
|
@ -1657,6 +1657,7 @@ html.b #music {
|
|||
#mu_th img {
|
||||
opacity: 0;
|
||||
margin: 0 auto;
|
||||
position: absolute;
|
||||
}
|
||||
#mu_tn {
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue