fixed cover art updating automatically during shuffle

This commit is contained in:
iou1name 2018-09-20 12:23:14 -04:00
parent 2f80e3c7a2
commit 0ec22ee2a2

View File

@ -41,9 +41,9 @@ function change_track(track) {
player.play();
document.getElementById('nowPlaying').innerHTML = track;
let cd = document.getElementById('currentDirectory').innerText;
let arr = track.split('/');
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) {