]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed single_album filter stupid typo
authorkaliko <efrim@azylum.org>
Tue, 10 Dec 2013 18:19:54 +0000 (19:19 +0100)
committerkaliko <efrim@azylum.org>
Tue, 10 Dec 2013 18:19:54 +0000 (19:19 +0100)
sima/plugins/internal/lastfm.py

index 3c576a60320d8de0e00e943fb41974737d5cdce2..03cea6cd4284247ac2180b9f831a56dea5022ca6 100644 (file)
@@ -146,7 +146,7 @@ class Lastfm(Plugin):
             # Should use albumartist heuristic as well
             if self.plugin_conf.getboolean('single_album'):
                 if (trk.album == self.player.current.album or
-                    trk.album in [trk.alb for trk in self.to_add]):
+                    trk.album in [tr.album for tr in self.to_add]):
                     self.log.debug('Found unplayed track ' +
                                'but from an album already queued: %s' % (trk))
                     continue