Fix last played node value for playcount

This commit is contained in:
croneter 2019-04-20 14:16:54 +02:00
parent 37f1bddf9d
commit 453098ef4f

View file

@ -373,7 +373,7 @@ def node_lastplayed(section, node_name):
etree.SubElement(rule, 'value').text = section.name etree.SubElement(rule, 'value').text = section.name
rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount', rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount',
'operator': 'greaterthan'}) 'operator': 'greaterthan'})
etree.SubElement(rule, 'value').text = 0 etree.SubElement(rule, 'value').text = '0'
etree.SubElement(xml, 'label').text = node_name etree.SubElement(xml, 'label').text = node_name
etree.SubElement(xml, 'icon').text = ICON_PATH etree.SubElement(xml, 'icon').text = ICON_PATH
etree.SubElement(xml, 'content').text = section.content etree.SubElement(xml, 'content').text = section.content