Sort unsorted methods
This commit is contained in:
parent
6a05a9d9b3
commit
ac3bee0799
@ -137,12 +137,7 @@ class DespotifyBackend(BaseBackend):
|
|||||||
self.spotify.stop()
|
self.spotify.stop()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Unsorted
|
# Playlist methods
|
||||||
|
|
||||||
def current_song(self):
|
|
||||||
if self.state is not self.STOP and self._current_track is not None:
|
|
||||||
return self._format_track(self._current_track,
|
|
||||||
self._current_song_pos)
|
|
||||||
|
|
||||||
def playlist_load(self, name):
|
def playlist_load(self, name):
|
||||||
playlists = filter(lambda p: decode(p.name) == name, self._playlists)
|
playlists = filter(lambda p: decode(p.name) == name, self._playlists)
|
||||||
@ -176,6 +171,11 @@ class DespotifyBackend(BaseBackend):
|
|||||||
|
|
||||||
# Status methods
|
# Status methods
|
||||||
|
|
||||||
|
def current_song(self):
|
||||||
|
if self.state is not self.STOP and self._current_track is not None:
|
||||||
|
return self._format_track(self._current_track,
|
||||||
|
self._current_song_pos)
|
||||||
|
|
||||||
def status_bitrate(self):
|
def status_bitrate(self):
|
||||||
return 320
|
return 320
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user