mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-24 18:10:26 +00:00
Remove doubled album entry in notification
This commit is contained in:
parent
c83fa60e20
commit
987fb4b2ec
@ -625,7 +625,7 @@ function webSocketConnect() {
|
||||
|
||||
case "song_change":
|
||||
var coverImg='/library/'+obj.data.uri.replace(/\/[^\/]+$/,'\/folder.jpg');
|
||||
document.getElementById('album-cover').style.backgroundImage='url("'+coverImg+'")';
|
||||
$('#album-cover').css('backgroundImage','url("'+coverImg+'")');
|
||||
|
||||
$('#album').text("");
|
||||
$('#artist').text("");
|
||||
@ -635,12 +635,6 @@ function webSocketConnect() {
|
||||
$('#currenttrack').text(" " + obj.data.title);
|
||||
var notification = "<strong><h4>" + obj.data.title + "</h4></strong>";
|
||||
|
||||
|
||||
if(obj.data.album) {
|
||||
$('#album').text(obj.data.album);
|
||||
notification += obj.data.album + "<br />";
|
||||
}
|
||||
|
||||
if(obj.data.artist) {
|
||||
$('#artist').text(obj.data.artist);
|
||||
notification += obj.data.artist + "<br />";
|
||||
|
Loading…
Reference in New Issue
Block a user