File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,20 @@ public function getEpisodeById($episodeId, $language = null)
296296
297297 return new Episode ($ data ->Episode );
298298 }
299+
300+ /**
301+ * @param $serieId
302+ * @param $airdate
303+ * @param null $language
304+ *
305+ * @return Episode
306+ */
307+ public function getEpisodeByAirDate ($ serieId , $ airdate , $ language = null )
308+ {
309+ $ language = $ language ? : $ this ->defaultLanguage ;
310+ $ data = $ this ->fetchXml ('GetEpisodeByAirDate.php?apikey= ' . $ this ->apiKey . '&seriesid= ' . $ serieId . '&airdate= ' . $ airdate . '&language= ' . $ language );
311+ return new Episode ($ data ->Episode );
312+ }
299313
300314 /**
301315 * Get updates list based on previous time you got data
@@ -513,4 +527,4 @@ public static function removeEmptyIndexes($array)
513527 sort ($ array );
514528 return $ array ;
515529 }
516- }
530+ }
You can’t perform that action at this time.
0 commit comments