Inline _load_track in _play_current_track
This commit is contained in:
parent
fe4405c836
commit
5616ac8227
@ -68,11 +68,9 @@ class LibspotifyBackend(BaseBackend):
|
|||||||
|
|
||||||
# Playback control
|
# Playback control
|
||||||
|
|
||||||
def _load_track(self, uri):
|
|
||||||
self.spotify.session.load(Link.from_string(uri).as_track())
|
|
||||||
|
|
||||||
def _play_current_track(self):
|
def _play_current_track(self):
|
||||||
self._load_track(self._current_track.uri)
|
self.spotify.session.load(
|
||||||
|
Link.from_string(self._current_track.uri).as_track())
|
||||||
self.spotify.session.play(1)
|
self.spotify.session.play(1)
|
||||||
|
|
||||||
def _next(self):
|
def _next(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user