/** * Serves a playlist containing the specified episode * @param int $id the episode ID * @throws CHttpException if the episode's file(s) don't exist */ public function actionGetEpisodePlaylist($id, $playlistFormat) { $episode = VideoLibrary::getEpisodeDetails($id, array('episode', 'season', 'showtitle', 'runtime', 'thumbnail', 'file')); $this->log('"%s" streamed %s of "%s"', Yii::app()->user->name, $episode->getEpisodeString(), $episode->showtitle); $this->servePlaylist($episode, $playlistFormat); }