fixed cover art updating automatically during shuffle
This commit is contained in:
parent
2f80e3c7a2
commit
0ec22ee2a2
|
@ -41,9 +41,9 @@ function change_track(track) {
|
||||||
player.play();
|
player.play();
|
||||||
document.getElementById('nowPlaying').innerHTML = track;
|
document.getElementById('nowPlaying').innerHTML = track;
|
||||||
|
|
||||||
let cd = document.getElementById('currentDirectory').innerText;
|
let arr = track.split('/');
|
||||||
let art = document.getElementById('albumCover');
|
let art = document.getElementById('albumCover');
|
||||||
art.firstChild.src = '/musik/album_cover' + cd + 'folder.jpg';
|
art.firstChild.src = '/musik/album_cover' + arr.slice(0, arr.length-1).join("/") + '/folder.jpg';
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_dir(item) {
|
function get_dir(item) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user