From 3789dbc5bd98f86c3243bc478b4cd55532bac85c Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 16 Nov 2021 14:32:18 +0100 Subject: [PATCH] Fixed wrong use of musicpd for tagtypes command (Closes #60) --- sima/mpdclient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sima/mpdclient.py b/sima/mpdclient.py index 6bbe63d..0e7988b 100644 --- a/sima/mpdclient.py +++ b/sima/mpdclient.py @@ -162,9 +162,9 @@ class MPD(MPDClient): if cmd not in available_cmd: self.disconnect() raise PlayerError(f'Could connect to "{host}", but command "{cmd}" not available') - self.tagtypes('clear') + self.tagtypes_clear() for tag in MPD.needed_tags: - self.tagtypes('enable', tag) + self.tagtypes_enable(tag) ltt = set(map(str.lower, self.tagtypes())) needed_tags = set(map(str.lower, MPD.needed_tags)) if len(needed_tags & ltt) != len(MPD.needed_tags): @@ -172,7 +172,7 @@ class MPD(MPDClient): self.log.warning('Tags needed: %s', needed_tags) raise PlayerError('Missing mandatory metadata!') for tag in MPD.needed_mbid_tags: - self.tagtypes('enable', tag) + self.tagtypes_enable(tag) # Controls use of MusicBrainzIdentifier if self.config.getboolean('sima', 'musicbrainzid'): ltt = set(self.tagtypes()) -- 2.39.5