2022-12-15, 20:36
I have these ListItem:
and i have these Sort Methods
I want to add a new sort for 'issue_number'
It's possible to create a custom one?
Code:
listitem.setInfo('video', {
'title' : issue_name, 'premiered': issue['m_date'],
'genre' : issue['m_genre'], 'studio' : issue['m_publisher'],
'rating' : issue['m_rating'], 'plot' : issue['m_plot'],
'path' : issue['filename'], 'year' : issue['m_year'],
'overlay' : ICON_OVERLAY,
})
listitem.setProperty('issue', issue['id'])
listitem.setProperty('issue_number', issue['m_number'])
listitem.setProperty('issue_title', issue['m_title'])
listitem.setProperty('name', issue['m_name'])
listitem.setProperty('magazine_name', issue['m_magazine'])
listitem.setProperty('issue_style', issue['m_style'])
and i have these Sort Methods
Code:
xbmcplugin.addSortMethod(handle = self.addon_handle, sortMethod = xbmcplugin.SORT_METHOD_UNSORTED)
xbmcplugin.addSortMethod(handle = self.addon_handle, sortMethod = xbmcplugin.SORT_METHOD_LABEL_IGNORE_FOLDERS)
xbmcplugin.addSortMethod(handle = self.addon_handle, sortMethod = xbmcplugin.SORT_METHOD_VIDEO_YEAR)
xbmcplugin.addSortMethod(handle = self.addon_handle, sortMethod = xbmcplugin.SORT_METHOD_STUDIO)
xbmcplugin.addSortMethod(handle = self.addon_handle, sortMethod = xbmcplugin.SORT_METHOD_GENRE)
I want to add a new sort for 'issue_number'
It's possible to create a custom one?