trying different things for autoplaylist
This commit is contained in:
parent
f9a5da2ba3
commit
8de94a670f
4 changed files with 16 additions and 3 deletions
|
@ -46,7 +46,17 @@ class AutoPlaylistManager {
|
||||||
while(!$full) {
|
while(!$full) {
|
||||||
$si = new Application_Model_ShowInstance($autoplaylist->getDbId());
|
$si = new Application_Model_ShowInstance($autoplaylist->getDbId());
|
||||||
$ps = $si->getPercentScheduled();
|
$ps = $si->getPercentScheduled();
|
||||||
//Logging::info("The total percent scheduled is % $ps");
|
if ($introplaylistid != null) {
|
||||||
|
sleep(20);
|
||||||
|
Logging::info('adding intro');
|
||||||
|
$si->addPlaylistToShowStart($introplaylistid, false);
|
||||||
|
}
|
||||||
|
if ($outroplaylistid != null) {
|
||||||
|
sleep(20);
|
||||||
|
Logging::info('adding outro');
|
||||||
|
$si->addPlaylistToShow($outroplaylistid, false);
|
||||||
|
//Logging::info("The total percent scheduled is % $ps");
|
||||||
|
}
|
||||||
if ($ps > 100) {
|
if ($ps > 100) {
|
||||||
$full = true;
|
$full = true;
|
||||||
}
|
}
|
||||||
|
@ -56,9 +66,13 @@ class AutoPlaylistManager {
|
||||||
else {
|
else {
|
||||||
$si->addPlaylistToShow($playlistid, false);
|
$si->addPlaylistToShow($playlistid, false);
|
||||||
if ($introplaylistid != null) {
|
if ($introplaylistid != null) {
|
||||||
|
sleep(20);
|
||||||
|
Logging::info('adding intro');
|
||||||
$si->addPlaylistToShowStart($introplaylistid, false);
|
$si->addPlaylistToShowStart($introplaylistid, false);
|
||||||
}
|
}
|
||||||
if ($outroplaylistid != null) {
|
if ($outroplaylistid != null) {
|
||||||
|
sleep(20);
|
||||||
|
Logging::info('adding outro');
|
||||||
$si->addPlaylistToShow($outroplaylistid, false);
|
$si->addPlaylistToShow($outroplaylistid, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ class LibraryController extends Zend_Controller_Action
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
|
Logging::info('debugging wtf');
|
||||||
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
||||||
$ajaxContext->addActionContext('contents-feed', 'json')
|
$ajaxContext->addActionContext('contents-feed', 'json')
|
||||||
->addActionContext('delete', 'json')
|
->addActionContext('delete', 'json')
|
||||||
|
|
|
@ -1644,7 +1644,6 @@ SQL;
|
||||||
|
|
||||||
// construct limit restriction
|
// construct limit restriction
|
||||||
$limits = array();
|
$limits = array();
|
||||||
|
|
||||||
if (isset($storedCrit['limit'])) {
|
if (isset($storedCrit['limit'])) {
|
||||||
if ($storedCrit['limit']['modifier'] == "items") {
|
if ($storedCrit['limit']['modifier'] == "items") {
|
||||||
$limits['time'] = 1440 * 60;
|
$limits['time'] = 1440 * 60;
|
||||||
|
|
|
@ -214,7 +214,6 @@ final class Application_Model_Scheduler
|
||||||
private function retrieveMediaFiles($id, $type, $show)
|
private function retrieveMediaFiles($id, $type, $show)
|
||||||
{
|
{
|
||||||
$files = array();
|
$files = array();
|
||||||
|
|
||||||
if ($type === "audioclip") {
|
if ($type === "audioclip") {
|
||||||
$file = CcFilesQuery::create()->findPK($id, $this->con);
|
$file = CcFilesQuery::create()->findPK($id, $this->con);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue