?next? is now ?next song? implemented

This commit is contained in:
coderkun 2012-07-23 13:54:34 +02:00
commit 262e99beb9
2 changed files with 9 additions and 12 deletions

11
mcg.py
View file

@ -97,10 +97,10 @@ class MCGClient:
self._add_action(self._playpause)
def next(self):
def next_song(self):
"""Plays the next album in the current order
"""
self._add_action(self._next)
self._add_action(self._next_song)
def connect_signal(self, signal, callback):
@ -251,13 +251,10 @@ class MCGClient:
self._client.play()
def _next(self):
def _next_song(self):
"""Action: Performs the real next command.
"""
song = self._client.currentsong()
if song:
current_album = MCGAlbum(song['artist'], song['album'], song['date'], os.path.dirname(song['file']))
# TODO _next()
self._client.next()
def _idle(self, modules):