mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
Revert the change
This commit is contained in:
@@ -37,7 +37,6 @@ class Client {
|
||||
$url = self::APIURL . "/search/shows?q=" . urlencode($show_name);
|
||||
|
||||
$shows = $this->getFile($url);
|
||||
var_dump($shows);
|
||||
|
||||
$relevant_shows = array();
|
||||
foreach($shows as $series) {
|
||||
|
||||
@@ -93,7 +93,6 @@ class TVShow extends TVProduction{
|
||||
function __construct($show_data){
|
||||
parent::__construct($show_data);
|
||||
$this->type = $show_data['type'];
|
||||
$this->episodes = $show_data['_embedded']['episodes'];
|
||||
$this->language = $show_data['language'];
|
||||
$this->genres = $show_data['genres'];
|
||||
$this->status = $show_data['status'];
|
||||
@@ -110,7 +109,7 @@ class TVShow extends TVProduction{
|
||||
$this->akas = (isset($show_data['_embedded']['akas']) ? $show_data['_embedded']['akas'] : null);
|
||||
|
||||
$current_date = date("Y-m-d");
|
||||
foreach($this->episodes as $episode){
|
||||
foreach($show_data['_embedded']['episodes'] as $episode){
|
||||
if($episode['airdate'] >= $current_date){
|
||||
$this->nextAirDate = $episode['airdate'];
|
||||
$this->airTime = date("g:i A", $episode['airtime']);
|
||||
|
||||
Reference in New Issue
Block a user