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

Fixed handling of special characters in manual scrobbling, fixes GH-68

This commit is contained in:
Krateng 2021-01-10 16:12:41 +01:00
parent 5bfd1e49dd
commit 6efe4a48c7

View File

@ -53,7 +53,7 @@ function scrobbleNew() {
var artistnodes = document.getElementById("artists_td").getElementsByTagName("span");
var artists = [];
for (let node of artistnodes) {
artists.push(node.innerHTML);
artists.push(node.textContent);
}
var title = document.getElementById("title").value;
scrobble(artists,title);
@ -86,8 +86,8 @@ function scrobbledone(req) {
txt = result["track"]["title"] + " by " + result["track"]["artists"][0];
if (result["track"]["artists"].length > 1) {
txt += " et al.";
document.getElementById("notification").innerHTML = "Scrobbled " + txt + "!";
}
document.getElementById("notification").innerHTML = "Scrobbled " + txt + "!";
}