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