spotify: Fix resume which was broken by fix for #227
This commit is contained in:
parent
16518697c8
commit
fd49faeed3
@ -46,10 +46,11 @@ class SpotifyPlaybackProvider(base.BasePlaybackProvider):
|
|||||||
|
|
||||||
def resume(self):
|
def resume(self):
|
||||||
time_position = self.get_time_position()
|
time_position = self.get_time_position()
|
||||||
|
|
||||||
self._timer.resume()
|
self._timer.resume()
|
||||||
|
self.audio.prepare_change()
|
||||||
return self.seek(time_position)
|
result = self.seek(time_position)
|
||||||
|
self.audio.start_playback()
|
||||||
|
return result
|
||||||
|
|
||||||
def seek(self, time_position):
|
def seek(self, time_position):
|
||||||
self.backend.spotify.session.seek(time_position)
|
self.backend.spotify.session.seek(time_position)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user