spotify: Playlist refresh hack should not be active after first run
This commit is contained in:
parent
69ede85959
commit
6a0e9aa69c
@ -142,8 +142,9 @@ class SpotifySessionManager(process.BaseThread, PyspotifySessionManager):
|
|||||||
# startup until the Spotify backend is ready from 35s to 12s in one
|
# startup until the Spotify backend is ready from 35s to 12s in one
|
||||||
# test with clean Spotify cache. In cases with an outdated cache
|
# test with clean Spotify cache. In cases with an outdated cache
|
||||||
# the time improvements should be a lot greater.
|
# the time improvements should be a lot greater.
|
||||||
self._initial_data_receive_completed = True
|
if not self._initial_data_receive_completed:
|
||||||
self.refresh_playlists()
|
self._initial_data_receive_completed = True
|
||||||
|
self.refresh_playlists()
|
||||||
|
|
||||||
def end_of_track(self, session):
|
def end_of_track(self, session):
|
||||||
"""Callback used by pyspotify"""
|
"""Callback used by pyspotify"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user