correct formatting
This commit is contained in:
parent
eff25672d9
commit
31023236ae
2 changed files with 3 additions and 7 deletions
|
@ -148,7 +148,6 @@ class SubidyLibraryProvider(backend.LibraryProvider):
|
|||
tracks=self.subsonic_api.get_songs_as_tracks(album.get("id"))
|
||||
)
|
||||
|
||||
|
||||
def get_distinct(self, field, query):
|
||||
search_result = self.search(query)
|
||||
if not search_result:
|
||||
|
|
|
@ -93,7 +93,6 @@ class SubsonicApi:
|
|||
def get_censored_song_stream_uri(self, song_id):
|
||||
return self.get_subsonic_uri("stream", dict(id=song_id), True)
|
||||
|
||||
|
||||
def find_raw(
|
||||
self,
|
||||
query,
|
||||
|
@ -122,7 +121,7 @@ class SubsonicApi:
|
|||
return None
|
||||
return response.get("searchResult2")
|
||||
|
||||
def find_artist_as_search_result (
|
||||
def find_artist_as_search_result(
|
||||
self,
|
||||
artist_search
|
||||
):
|
||||
|
@ -133,9 +132,8 @@ class SubsonicApi:
|
|||
uri=uri.get_search_uri(artist_search),
|
||||
artists=[
|
||||
self.raw_artist_to_artist(artist)
|
||||
for artist in result.get("artist") or []
|
||||
for artist in result.get("artist") or []
|
||||
if artist_search.casefold() in artist.get("name").casefold()
|
||||
|
||||
],
|
||||
albums=[
|
||||
self.raw_album_to_album(album)
|
||||
|
@ -149,7 +147,6 @@ class SubsonicApi:
|
|||
],
|
||||
)
|
||||
|
||||
|
||||
def find_as_search_result(
|
||||
self,
|
||||
query,
|
||||
|
|
Loading…
Add table
Reference in a new issue