Linking soundcloud without client-id, but it wont work

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-28 13:10:45 +02:00
parent 3053e61985
commit b3825bd093

View File

@@ -603,7 +603,7 @@ function addDynamicListeners() {
if(id != "") {
Helper.css(".copy_video_id", "display", "block");
if(parent.getAttribute("data-source") == "soundcloud") {
Helper.setHtml(".copy_video_id", "https://api.soundcloud.com/tracks/" + id + "?client_id=" + api_key.soundcloud);
Helper.setHtml(".copy_video_id", "https://api.soundcloud.com/tracks/" + id);
} else if(parent.getAttribute("data-source") == "youtube") {
Helper.setHtml(".copy_video_id", "https://www.youtube.com/watch?v=" + id);
}