-syntax error fix for liquidsoap + other small changes
This commit is contained in:
parent
c2903c4198
commit
75167bb576
2 changed files with 3 additions and 4 deletions
|
@ -18,7 +18,6 @@ if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) {
|
|||
createAPIKey();
|
||||
|
||||
require_once(dirname(__FILE__).'/../application/configs/conf.php');
|
||||
//require_once(dirname(__FILE__).'/../application/models/GreenBox.php');
|
||||
require_once(dirname(__FILE__).'/installInit.php');
|
||||
|
||||
|
||||
|
@ -36,8 +35,8 @@ function rand_string($len=20, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
|
|||
function createAPIKey(){
|
||||
|
||||
$api_key = rand_string();
|
||||
updateINIKeyValues('../build/airtime.conf', 'api_key', $api_key);
|
||||
updateINIKeyValues('../pypo/config.cfg', 'api_key', "'$api_key'");
|
||||
updateINIKeyValues(__DIR__.'/../build/airtime.conf', 'api_key', $api_key);
|
||||
updateINIKeyValues(__DIR__.'/../pypo/config.cfg', 'api_key', "'$api_key'");
|
||||
}
|
||||
|
||||
function checkIfRoot(){
|
||||
|
|
|
@ -42,7 +42,7 @@ def add_skip_command(s)
|
|||
def skip(_)
|
||||
l = list.hd(server.execute("queue.queue"))
|
||||
l = string.split(separator=" ",l)
|
||||
list.iter(fun (rid) -> ignore(server.execute(queue.ignore #{rid}")), l)
|
||||
list.iter(fun (rid) -> ignore(server.execute("queue.ignore #{rid}")), l)
|
||||
|
||||
source.skip(s)
|
||||
"Done!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue