Sort unsorted methods

This commit is contained in:
Stein Magnus Jodal 2010-01-27 14:31:42 +01:00
parent 6a05a9d9b3
commit ac3bee0799

View File

@ -137,12 +137,7 @@ class DespotifyBackend(BaseBackend):
self.spotify.stop()
return True
# Unsorted
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)
# Playlist methods
def playlist_load(self, name):
playlists = filter(lambda p: decode(p.name) == name, self._playlists)
@ -176,6 +171,11 @@ class DespotifyBackend(BaseBackend):
# 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):
return 320