spotify: Use SPOTIFY_TIMEOUT when waiting for objects to load
This commit is contained in:
parent
4a29e2549a
commit
4d67dd1353
@ -99,7 +99,8 @@ class SpotifyLibraryProvider(base.BaseLibraryProvider):
|
||||
self._wait_for_object_to_load(playlist)
|
||||
return [SpotifyTrack(track=t) for t in playlist]
|
||||
|
||||
def _wait_for_object_to_load(self, spotify_obj, timeout=10):
|
||||
def _wait_for_object_to_load(
|
||||
self, spotify_obj, timeout=settings.SPOTIFY_TIMEOUT):
|
||||
# XXX Sleeping to wait for the Spotify object to load is an ugly hack,
|
||||
# but it works. We should look into other solutions for this.
|
||||
start = time.time()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user