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

Fixed convoluted old scrobbling functionality

This commit is contained in:
krateng
2022-02-13 06:15:29 +01:00
parent 034f8b32c7
commit a64d3610d3
4 changed files with 20 additions and 26 deletions

View File

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