mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved SoundCloud api-key out to different config file and fixed some list-naming issues that was caused with filter.clean was performed after list-name was encoded. Closes #362
This commit is contained in:
@@ -245,6 +245,10 @@ var Player = {
|
||||
//Playercontrols.play_pause();
|
||||
} else {
|
||||
if(videoSource == "soundcloud") {
|
||||
if(!soundcloud_enabled) {
|
||||
console.error("SoundCloud isn't enabled, so can't search on SoundCloud..");
|
||||
return;
|
||||
}
|
||||
Player.soundcloud_player.play();
|
||||
//SC.Widget(document.querySelector("#soundcloud_player")).play();
|
||||
} else {
|
||||
@@ -264,6 +268,10 @@ var Player = {
|
||||
} else {
|
||||
paused = true;
|
||||
if(videoSource == "soundcloud") {
|
||||
if(!soundcloud_enabled) {
|
||||
console.error("SoundCloud isn't enabled, so can't search on SoundCloud..");
|
||||
return;
|
||||
}
|
||||
Player.soundcloud_player.pause();
|
||||
//SC.Widget(document.querySelector("#soundcloud_player")).pause();
|
||||
} else {
|
||||
@@ -283,6 +291,10 @@ var Player = {
|
||||
},
|
||||
|
||||
loadSoundCloud: function(id, this_duration, start, end, _autoplay) {
|
||||
if(!soundcloud_enabled) {
|
||||
console.error("SoundCloud isn't enabled, so can't search on SoundCloud..");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if(SC == null) return;
|
||||
} catch(e) {
|
||||
|
||||
Reference in New Issue
Block a user