def search_series(self, **kwargs):
        """Provide the ability to search for a series.

        .. warning::

            authorization token required

        The following search arguments currently supported:

            * name
            * imdbId
            * zap2itId

        :param kwargs: keyword arguments to search for series
        :returns: series record or series records
        :rtype: dict
        """
        params = {}
        for arg, val in six.iteritems(kwargs):
            if arg in SERIES_BY:
                params[arg] = val
        resp = self._exec_request(
            'search', path_args=['series'], params=params)
        if cfg.CONF.tvdb.select_first:
            return resp['data'][0]
        return resp['data']
def search_series ( self , ** kwargs ) : params = { } for arg , val in six . iteritems ( kwargs ) : if arg in SERIES_BY : params [ arg ] = val resp = self . _exec_request ( 'search' , path_args = [ 'series' ] , params = params ) if cfg . CONF . tvdb . select_first : return resp [ 'data' ] [ 0 ] return resp [ 'data' ]
Provide the ability to search for a series.

        .. warning::

            authorization token required

        The following search arguments currently supported:

            * name
            * imdbId
            * zap2itId

        :param kwargs: keyword arguments to search for series
        :returns: series record or series records
        :rtype: dict