From: kaliko Date: Wed, 16 Dec 2020 13:05:29 +0000 (+0100) Subject: Use window option in find request X-Git-Tag: 0.16.1~17 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=17f83deca15eb023bff35a182495b4513a2e7b3f;p=mpd-sima.git Use window option in find request Limit response size since this is only to test filter validity, response is useless anyway. --- diff --git a/sima/plugins/internal/tags.py b/sima/plugins/internal/tags.py index 5ea4726..9a931fc 100644 --- a/sima/plugins/internal/tags.py +++ b/sima/plugins/internal/tags.py @@ -112,7 +112,8 @@ class Tags(Plugin): # Check filter is valid try: if self.plugin_conf['filter']: - self.player.find(self.plugin_conf['filter']) + # Use window to limit response size + self.player.find(self.plugin_conf['filter'], "window", (0, 1)) except CommandError: raise PluginException('Badly formated filter in tags plugin configuration: "%s"' % self.plugin_conf['filter'])