summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 1e34b9ca4..f22bd5ca4 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -814,8 +814,8 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked):
raise PluginExecutionError
index = prio.index(max(prio))
- for rname in matching[index].cache[1][entry.tag]:
- if self._matches(entry, metadata, rname):
+ for rname in list(matching[index].cache[1][entry.tag].keys()):
+ if self._matches(entry, metadata, [rname]):
data = matching[index].cache[1][entry.tag][rname]
break
if '__text__' in data: