diff --git a/application/models/Shows.php b/application/models/Shows.php index 71273c00d..cf7df53ab 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -58,6 +58,24 @@ class Show { $show->setDbBackgroundColor($backgroundColor); } + public function getHosts() + { + global $CC_DBC; + + $sql = "SELECT first_name, last_name + FROM cc_show_hosts LEFT JOIN cc_subjs ON cc_show_hosts.subjs_id = cc_subjs.id + WHERE show_id = {$this->_showId}"; + + $hosts = $CC_DBC->GetAll($sql); + + $res = array(); + foreach($hosts as $host) { + $res[] = $host['first_name']." ".$host['last_name']; + } + + return $res; + } + public function cancelShow($day_timestamp) { global $CC_DBC; diff --git a/python_apps/show-recorder/testrecordscript.py b/python_apps/show-recorder/testrecordscript.py index c7fb2691d..a352e1f26 100644 --- a/python_apps/show-recorder/testrecordscript.py +++ b/python_apps/show-recorder/testrecordscript.py @@ -61,7 +61,7 @@ class ShowRecorder(Thread): filename = self.filename.replace(" ", "-") filepath = "%s%s.%s" % (config["base_recorded_files"], filename, self.filetype) - command = "ecasound -i alsa -o %s -t:%s" % (filepath, length) + command = "ecasound -i alsa -o %s -t:%s -ge:3,1,0,-1" % (filepath, length) args = command.split(" ") print "starting record"