MPDClass.__init__(self)
self._run()
- def _fade(self, io='out'):#{{{
+ def _fade(self, io='out'):
"""
end_volum => End volume value
mpd_vol => Start volume value
if abs(mpd_vol - end_volum) < 1:
self.client.setvol(end_volum)
return True
- sleep(0.1)#}}}
+ sleep(0.1)
- def _get_next(self):#{{{
+ def _get_next(self):
"""Retrieve playlist from current song to the end."""
if 'song' not in self.client.status():
print "No current song set in MPD!"
sys.exit(0)
album = self.client.playlistinfo(next_album_pos)[0].get('album', 'TAG MISSING')
print 'Next album appears to be: "%s"' % album
- return next_album_pos#}}}
+ return next_album_pos
def _run(self):
""""""