diff options
Diffstat (limited to 'bindings/python')
-rw-r--r-- | bindings/python/lilv.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python/lilv.py b/bindings/python/lilv.py index 2ba5c43..595ec00 100644 --- a/bindings/python/lilv.py +++ b/bindings/python/lilv.py @@ -1101,6 +1101,9 @@ class Nodes(Collection): c.nodes_free(self.collection) def __contains__(self, value): + if type(value) in [Plugin, PluginClass, UI]: + value = value.get_uri() + return c.nodes_contains(self.collection, value.node) def __len__(self): |