1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Minor fixes

This commit is contained in:
krateng
2022-04-07 17:28:11 +02:00
parent 74f6a931a4
commit c378c9301d
5 changed files with 4 additions and 7 deletions

View File

@@ -83,8 +83,8 @@ function scrobble(artists,title) {
function scrobbledone(req) {
result = req.response;
txt = result["scrobble"]["track"]["title"] + " by " + result["scrobble"]["track"]["artists"][0];
if (result["scrobble"]["track"]["artists"].length > 1) {
txt = result["track"]["title"] + " by " + result["track"]["artists"][0];
if (result["track"]["artists"].length > 1) {
txt += " et al.";
}
document.getElementById("notification").innerHTML = "Scrobbled " + txt + "!";