Inline _load_track in _play_current_track

This commit is contained in:
Stein Magnus Jodal 2010-02-01 10:01:11 +01:00
parent fe4405c836
commit 5616ac8227

View File

@ -68,11 +68,9 @@ class LibspotifyBackend(BaseBackend):
# Playback control
def _load_track(self, uri):
self.spotify.session.load(Link.from_string(uri).as_track())
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)
def _next(self):