From: kaliko Date: Tue, 16 Nov 2021 13:32:18 +0000 (+0100) Subject: Fixed wrong use of musicpd for tagtypes command (Closes #60) X-Git-Tag: 0.18.0~5 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=3789dbc5bd98f86c3243bc478b4cd55532bac85c;p=mpd-sima.git Fixed wrong use of musicpd for tagtypes command (Closes #60) --- 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())