mirror of
https://github.com/SuperBFG7/ympd
synced 2025-09-30 16:02:24 +00:00
Remove doubled album entry in notification
This commit is contained in:
@@ -625,7 +625,7 @@ function webSocketConnect() {
|
|||||||
|
|
||||||
case "song_change":
|
case "song_change":
|
||||||
var coverImg='/library/'+obj.data.uri.replace(/\/[^\/]+$/,'\/folder.jpg');
|
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("");
|
$('#album').text("");
|
||||||
$('#artist').text("");
|
$('#artist').text("");
|
||||||
@@ -635,12 +635,6 @@ function webSocketConnect() {
|
|||||||
$('#currenttrack').text(" " + obj.data.title);
|
$('#currenttrack').text(" " + obj.data.title);
|
||||||
var notification = "<strong><h4>" + obj.data.title + "</h4></strong>";
|
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) {
|
if(obj.data.artist) {
|
||||||
$('#artist').text(obj.data.artist);
|
$('#artist').text(obj.data.artist);
|
||||||
notification += obj.data.artist + "<br />";
|
notification += obj.data.artist + "<br />";
|
||||||
|
Reference in New Issue
Block a user