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:
@@ -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)
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user