/** * @return mixed the season poster. If this is the first season of a show * and the artwork is not available we fall back to the show's artwork */ public function getArtwork() { if (isset($this->art->poster)) { return $this->art->poster; } elseif ($this->season === 1) { $tvshow = VideoLibrary::getTVShowDetails($this->tvshowid, array('art', 'thumbnail')); return $tvshow->getArtwork(); } return null; }
/** * Serves a playlist containing all episodes from the specified TV show * @param int $tvshowId the TV show ID */ public function actionGetTVShowPlaylist($tvshowId) { $tvshow = VideoLibrary::getTVShowDetails($tvshowId, array()); $this->log('"%s" streamed TV show "%s"', Yii::app()->user->name, $tvshow->getDisplayName()); $this->servePlaylist($tvshow); }