On Deck: sort by last played
This commit is contained in:
parent
d3e27d9797
commit
53b15aa51a
1 changed files with 5 additions and 0 deletions
|
@ -304,6 +304,11 @@ class VideoNodes(object):
|
||||||
elif nodetype == "inprogress":
|
elif nodetype == "inprogress":
|
||||||
etree.SubElement(root, 'rule', {'field': "inprogress", 'operator': "true"})
|
etree.SubElement(root, 'rule', {'field': "inprogress", 'operator': "true"})
|
||||||
etree.SubElement(root, 'limit').text = limit
|
etree.SubElement(root, 'limit').text = limit
|
||||||
|
etree.SubElement(
|
||||||
|
root,
|
||||||
|
'order',
|
||||||
|
{'direction': 'descending'}
|
||||||
|
).text = 'lastplayed'
|
||||||
|
|
||||||
elif nodetype == "genres":
|
elif nodetype == "genres":
|
||||||
etree.SubElement(root, 'order', {'direction': "ascending"}).text = "sorttitle"
|
etree.SubElement(root, 'order', {'direction': "ascending"}).text = "sorttitle"
|
||||||
|
|
Loading…
Add table
Reference in a new issue