Correctly importing with https

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-25 20:30:31 +02:00
parent 6f1689ccb0
commit c86509b899

View File

@@ -1027,7 +1027,7 @@ function addDynamicListeners() {
headers: {
"Content-Type": "application/json"
},
url: "http://api.soundcloud.com/resolve/?url=" + document.querySelector("#import_soundcloud").value + "&limit=1&client_id=" + api_key.soundcloud + "&format=json&_status_code_map[200]=200",
url: "https://api.soundcloud.com/resolve/?url=" + document.querySelector("#import_soundcloud").value + "&limit=1&client_id=" + api_key.soundcloud + "&format=json&_status_code_map[200]=200",
success: function(data){
try {
var jsonData = JSON.parse(data);