set auto-generated smartblock and playlist title directly from input
This commit is contained in:
parent
15b73580c1
commit
15cf291bc9
3 changed files with 53 additions and 40 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue