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

Changed API url

This commit is contained in:
Krateng
2019-05-12 10:20:47 +02:00
parent 0bf1790a7c
commit 3fce682c00
6 changed files with 9 additions and 9 deletions

View File

@@ -255,7 +255,7 @@ function scrobble(artist,title,seconds) {
chrome.storage.local.get("serverurl",function(result) {
URL = result["serverurl"]
var xhttp = new XMLHttpRequest();
xhttp.open("POST",URL + "/db/newscrobble",true);
xhttp.open("POST",URL + "/api/newscrobble",true);
xhttp.send("artist=" + artiststring + "&title=" + titlestring + "&duration=" + seconds + "&key=" + APIKEY)
});
});

View File

@@ -1,6 +1,6 @@
{
"name": "Maloja Scrobbler",
"version": "1.0",
"version": "1.1",
"description": "Scrobbles tracks from various sites to your Maloja server",
"manifest_version": 2,
"permissions": ["activeTab",

View File

@@ -72,7 +72,7 @@ function updateAPIKey() {
}
function checkServer() {
url = document.getElementById("serverurl").value + "/db/test?key=" + document.getElementById("apikey").value
url = document.getElementById("serverurl").value + "/api/test?key=" + document.getElementById("apikey").value
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = createCheckmarks;