2023-08-04, 10:16
Basically I'm using an addon that displays a bunch of published videos (ie similar to youtube etc) as listitems with mediatype 'episode', and I'm using Yatse to navigate to the addon's virtual-'folder' containing these episodes.
Yatse I have configured to sort lists by date - specifically it sends a
Kodi's API is even returning
If you go to a "real" tv series in the database, this works perfectly (as newer episodes end up at the top etc) and the API returns a
If you go to this video addon (and any others, tested with vimeo for example) it seems to be impossible for a ListItem to actually provide a date to be sorted by, so it ends up alphabetical descending.
I've tried all the following within the addon:
Interestingly the actual kodi interface I can sort by Date Added, but the API refuses to sort by 'date'
What, if anything, can I set in the ListItem to get kodi to sort it by 'date'?
Yatse I have configured to sort lists by date - specifically it sends a
Files.GetDirectory
with {"method":"date","order":"descending"}
Kodi's API is even returning
"lastmodified": ""
so even if yatse/any other remote program wanted to manually sort the list, it's impossible.If you go to a "real" tv series in the database, this works perfectly (as newer episodes end up at the top etc) and the API returns a
lastmodified
date that seems to match the episode date.If you go to this video addon (and any others, tested with vimeo for example) it seems to be impossible for a ListItem to actually provide a date to be sorted by, so it ends up alphabetical descending.
I've tried all the following within the addon:
python:'date': str(published.format('YYYY-MM-DD')),
'dateadded': str(published.format('YYYY-MM-DD HH:mms')),
'premiered': str(published.format('YYYY-MM-DD')),
'aired': str(published.format('YYYY-MM-DD')),
Interestingly the actual kodi interface I can sort by Date Added, but the API refuses to sort by 'date'
What, if anything, can I set in the ListItem to get kodi to sort it by 'date'?