public function sbSearchTvdb($name = null, $tvdbId = null, $lang = 'en')
    {
        $uri = 'sb.searchtvdb';
        $uriData = [
            'lang' => $lang
        ];
        if ( $name ) { $uriData['name'] = $name; }
        if ( $tvdbId ) { $uriData['tvdbid'] = $tvdbId; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function sbSearchTvdb($name = null, $tvdbId = null, $lang = 'en')
    {
        $uri = 'sb.searchtvdb';
        $uriData = [
            'lang' => $lang
        ];
        if ( $name ) { $uriData['name'] = $name; }
        if ( $tvdbId ) { $uriData['tvdbid'] = $tvdbId; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function sbSearchTvdb ( $ name = null , $ tvdbId = null , $ lang = 'en' ) { $ uri = 'sb.searchtvdb' ; $ uriData = [ 'lang' => $ lang ] ; if ( $ name ) { $ uriData [ 'name' ] = $ name ; } if ( $ tvdbId ) { $ uriData [ 'tvdbid' ] = $ tvdbId ; } try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Search TVDB for a show with a given string or tvdbid.

@param string|null $name show name
@param int|null $tvdbId tvdbid unique show id
@param string $lang two letter tvdb language, en = english
--- en, zh, hr, cs, da, nl, fi, fr, de, el, he, hu, it, ja, ko, no, pl, pt, ru, sl, es, sv, tr
@return string
@throws InvalidException
Search TVDB for a show with a given string or tvdbid .