mirror of
https://github.com/beetbox/beets.git
synced 2025-12-21 16:13:38 +01:00
bugfix: clean up was a mess up
This commit is contained in:
parent
497746051e
commit
2ddff72752
1 changed files with 2 additions and 2 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue