From 4d67dd1353dc56b4dcfae4ba22c2e9440d5c7236 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 19 Dec 2012 23:37:43 +0100 Subject: [PATCH] spotify: Use SPOTIFY_TIMEOUT when waiting for objects to load --- mopidy/backends/spotify/library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mopidy/backends/spotify/library.py b/mopidy/backends/spotify/library.py index d171ecae..dec13ced 100644 --- a/mopidy/backends/spotify/library.py +++ b/mopidy/backends/spotify/library.py @@ -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()