From 7287fe2c147181586d74230936f3362e180c7fce Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 23:02:09 +0100 Subject: [PATCH] Add missing method in TV API. --- lib/Tmdb/Api/Tv.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Tmdb/Api/Tv.php b/lib/Tmdb/Api/Tv.php index c0a91214..b810998c 100644 --- a/lib/Tmdb/Api/Tv.php +++ b/lib/Tmdb/Api/Tv.php @@ -113,4 +113,18 @@ public function getTranslations($tvshow_id, array $parameters = array(), array $ { $this->get('tv/' . $tvshow_id . '/translations', $parameters, $headers); } + + /** + * Get the list of TV shows that are currently on the air. + * + * This query looks for any TV show that has an episode with an air date in the next 7 days. + * + * @param array $parameters + * @param array $headers + * @return mixed + */ + public function getOnTheAir(array $parameters = array(), array $headers = array()) + { + $this->get('tv/on_the_air', $parameters, $headers); + } }