- self.log.debug('%s plugin needs the followinng metadata: %s',
- self, set(self.plugin_conf.keys()) & Tags.supported_tags)
- tags = set(self.plugin_conf.keys()) & Tags.supported_tags
+ """Ensure needed tags are exposed by MPD"""
+ # At this point mpd_filter concatenetes {tags}+filter
+ config_tags = set()
+ for mpd_supp_tags in self.player.MPD_supported_tags:
+ if mpd_supp_tags.lower() in self.mpd_filter.lower():
+ config_tags.add(mpd_supp_tags.lower())
+ self.log.debug('%s plugin needs the following metadata: %s',
+ self, config_tags)
+ tags = config_tags & Tags.supported_tags