From fa818637276a519a0e7b9779f58b74b8092b4b20 Mon Sep 17 00:00:00 2001 From: kaliko Date: Thu, 14 Jun 2012 13:43:12 +0000 Subject: [PATCH] * nalbum: Check availability of next album before starting fading out --- src/nalbum | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5