Add API testing scripts

This commit is contained in:
DariusIII
2015-12-15 14:30:16 +01:00
parent d873f8395d
commit d4a7a31576
7 changed files with 125 additions and 5 deletions
+1 -1
View File
@@ -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'];