B"H get list of playlists immediately instead of caching them
This commit is contained in:
parent
a2f23c2095
commit
364352a765
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ class SubidyPlaylistsProvider(backend.PlaylistsProvider):
|
|||
self.refresh()
|
||||
|
||||
def as_list(self):
|
||||
return self.playlists
|
||||
return self.subsonic_api.get_playlists_as_refs()
|
||||
|
||||
def create(self, name):
|
||||
result = self.subsonic_api.create_playlist_raw(name)
|
||||
|
@ -41,7 +41,7 @@ class SubidyPlaylistsProvider(backend.PlaylistsProvider):
|
|||
return self.subsonic_api.get_playlist_as_playlist(uri.get_playlist_id(lookup_uri))
|
||||
|
||||
def refresh(self):
|
||||
self.playlists = self.subsonic_api.get_playlists_as_refs()
|
||||
pass
|
||||
|
||||
def save(self, playlist):
|
||||
playlist_id = uri.get_playlist_id(playlist.uri)
|
||||
|
|
Loading…
Add table
Reference in a new issue