public function testAction() { $this->doNotRender(); set_time_limit(0); ini_set('memory_limit', '-1'); Debug::setEchoMode(); // -------- START HERE -------- // \PVL\CentovaCast::sync(); Debug::log('CCast Sync Complete'); $station = \Entity\Station::getRepository()->findOneBy(array('name' => 'PonyvilleFM')); $tracks = \PVL\CentovaCast::fetchTracks($station); Debug::print_r($tracks); // -------- END HERE -------- // Debug::log('Done!'); }
public static function syncMedium($force = false) { self::initSync(300); // Sync schedules (highest priority). Debug::runTimer('Run schedule manager', function () { ScheduleManager::run(!DF_IS_COMMAND_LINE); }); // Sync show episodes and artist news (high priority). Debug::runTimer('Run podcast manager', function () { PodcastManager::run(); }); // Pull the homepage news. Debug::runTimer('Run network news manager', function () { NewsManager::run(); }); // Sync CentovaCast song data. Debug::runTimer('Run CentovaCast track sync', function () { CentovaCast::sync(); }); Settings::setSetting('sync_last_run', time()); }