mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 03:38:52 +00:00
Add API testing scripts
This commit is contained in:
@@ -19,7 +19,7 @@ if (!empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
|
||||
$series = $tmdb->client->searchTVShow((string)$argv[1]);
|
||||
|
||||
// Use the first show found (highest match) and get the requested season/episode from $argv
|
||||
if ($series) {
|
||||
if (!empty($series)) {
|
||||
$seriesAppends = $tmdb->client->getTVShow($series[0]->_data['id'], 'append_to_response=alternative_titles,external_ids');
|
||||
if ($seriesAppends) {
|
||||
$series[0]->_data['networks'] = $seriesAppends->_data['networks'];
|
||||
|
||||
Reference in New Issue
Block a user