def _search_by_uri(config, session, query, web_client): tracks = [] for uri in query['uri']: tracks += lookup.lookup(config, session, uri, web_client) uri = 'spotify:search' if len(query['uri']) == 1: uri = query['uri'][0] return models.SearchResult(uri=uri, tracks=tracks)
def _search_by_uri(config, session, web_client, query): tracks = [] for uri in query["uri"]: tracks += lookup.lookup(config, session, web_client, uri) uri = "spotify:search" if len(query["uri"]) == 1: uri = query["uri"][0] return models.SearchResult(uri=uri, tracks=tracks)
def _search_by_uri(config, session, query): tracks = [] for uri in query['uri']: tracks += lookup.lookup(config, session, uri) uri = 'spotify:search' if len(query['uri']) == 1: uri = query['uri'][0] return models.SearchResult(uri=uri, tracks=tracks)
def lookup(self, uri): return lookup.lookup( self._config, self._backend._session, self._backend._web_client, uri )
def lookup(self, uri): return lookup.lookup(self._config, self._backend._session, uri)