set auto-generated smartblock and playlist title directly from input

This commit is contained in:
ryan 2018-12-14 15:24:28 -06:00
parent 15b73580c1
commit 15cf291bc9
3 changed files with 53 additions and 40 deletions

View file

@ -198,14 +198,15 @@ class Rest_PodcastController extends Zend_Rest_Controller
public function smartblockAction() {
$title = $this->_getParam('title', []);
$id = $this->_getParam('id', []);
if (!$id) {
return;
}
$podcast = Application_Service_PodcastService::getPodcastById($id);
logging::info($podcast);
Application_Service_PodcastService::createPodcastSmartblockAndPlaylist($podcast);
// logging::info($podcast);
Application_Service_PodcastService::createPodcastSmartblockAndPlaylist($podcast, $title);
}