On Deck: sort by last played

This commit is contained in:
tomkat83 2016-04-08 13:06:20 +02:00
parent d3e27d9797
commit 53b15aa51a
1 changed files with 5 additions and 0 deletions

View File

@ -304,6 +304,11 @@ class VideoNodes(object):
elif nodetype == "inprogress":
etree.SubElement(root, 'rule', {'field': "inprogress", 'operator': "true"})
etree.SubElement(root, 'limit').text = limit
etree.SubElement(
root,
'order',
{'direction': 'descending'}
).text = 'lastplayed'
elif nodetype == "genres":
etree.SubElement(root, 'order', {'direction': "ascending"}).text = "sorttitle"