From 2ddff72752ebd6afaef5cb4c54d66b015eadf977 Mon Sep 17 00:00:00 2001 From: Peter Schnebel Date: Thu, 31 Oct 2013 17:02:34 +0100 Subject: [PATCH] bugfix: clean up was a mess up --- beetsplug/mpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/mpc.py b/beetsplug/mpc.py index 7e53e444c..fc6162e45 100644 --- a/beetsplug/mpc.py +++ b/beetsplug/mpc.py @@ -65,7 +65,7 @@ class Client(object): self.port = self.config['port'].get() self.password = self.config['password'].get() self.user = self.config['user'].get() - self.rating = self.config['rating'].get(bool) + self.do_rating = self.config['rating'].get(bool) self.rating_mix = self.config['rating_mix'].get(float) self.client = MPDClient() @@ -151,7 +151,7 @@ class Client(object): def beetsrating(self, item, skipped): """ Update the rating of the beets item. """ - if self.rating and not item is None: + if self.do_rating and not item is None: attribute = 'rating' item[attribute] = self.rating( (int)(item.get('play_count', 0)),