From 453098ef4f1c208edb05d984835754f41b83cd5d Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 20 Apr 2019 14:16:54 +0200 Subject: [PATCH] Fix last played node value for playcount --- resources/lib/library_sync/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/library_sync/nodes.py b/resources/lib/library_sync/nodes.py index a30ac047..369f37cb 100644 --- a/resources/lib/library_sync/nodes.py +++ b/resources/lib/library_sync/nodes.py @@ -373,7 +373,7 @@ def node_lastplayed(section, node_name): etree.SubElement(rule, 'value').text = section.name rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount', 'operator': 'greaterthan'}) - etree.SubElement(rule, 'value').text = 0 + etree.SubElement(rule, 'value').text = '0' etree.SubElement(xml, 'label').text = node_name etree.SubElement(xml, 'icon').text = ICON_PATH etree.SubElement(xml, 'content').text = section.content