From: kaliko Date: Thu, 14 Jun 2012 13:43:12 +0000 (+0000) Subject: * nalbum: Check availability of next album before starting fading out X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=fa818637276a519a0e7b9779f58b74b8092b4b20;p=mpd-goodies.git * nalbum: Check availability of next album before starting fading out --- diff --git a/src/nalbum b/src/nalbum index ae53c79..dbb2e14 100755 --- a/src/nalbum +++ b/src/nalbum @@ -101,11 +101,12 @@ class Nalbum(Goodie): """""" print 'Connecting %s:%i' % (self.cli_options.host, self.cli_options.port) self.mpdConnect() + nalbum = self._get_next() self.init_vol = int(self.client.status().get('volume')) if self.cli_options.time: print 'Cross fading next album' self._fade() - self.client.play(self._get_next()) + self.client.play(nalbum) if self.cli_options.time: self._fade(io='in') self.client.disconnect()