Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
 def lookup(self, uri):
     return lookup.lookup(
         self._config, self._backend._session, self._backend._web_client, uri
     )
Пример #5
0
 def lookup(self, uri):
     return lookup.lookup(self._config, self._backend._session, uri)