예제 #1
0
 public function getStreamableItems()
 {
     $items = array();
     $seasons = VideoLibrary::getSeasons($this->tvshowid);
     // Get all episodes from all the seasons
     foreach ($seasons as $season) {
         $episodes = VideoLibrary::getEpisodes($this->tvshowid, $season->season);
         $items = array_merge($items, $episodes);
     }
     return $items;
 }
예제 #2
0
 public function getStreamableItems()
 {
     return VideoLibrary::getEpisodes($this->tvshowid, $this->season);
 }
 /**
  * Returns a data provider containing the episodes for the specified show 
  * and season
  * @param int $tvshowId the TV show ID
  * @param int $season the season number
  * @return \LibraryDataProvider
  */
 public function getEpisodeDataProvider($tvshowId, $season)
 {
     $episodes = VideoLibrary::getEpisodes($tvshowId, $season);
     // We never want pagination here
     return new LibraryDataProvider($episodes, array('pagination' => false));
 }