From 17f83deca15eb023bff35a182495b4513a2e7b3f Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 16 Dec 2020 14:05:29 +0100 Subject: [PATCH] Use window option in find request Limit response size since this is only to test filter validity, response is useless anyway. --- sima/plugins/internal/tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']) -- 2.39.5