client->showSearch((string)$argv[1], 'show'); // Use the first show found (highest match) and get the requested season/episode from $argv if (is_array($series)) { $episode = $trakt->client->episodeSummary((int)$series[0]['show']['ids']['trakt'], (int)$argv[2], (int)$argv[3], 'full'); print_r($series[0]); print_r($episode); } else { exit($c->error("Error retrieving Trakt data.")); } } else { exit($c->error("Invalid arguments. This script requires a text string (show name) followed by a season and episode number.")); }