Skip to content

Commit

Permalink
add sorttitle for channels and customs groupings Issue #166
Browse files Browse the repository at this point in the history
  • Loading branch information
codingPF committed May 6, 2020
1 parent 5f5874f commit 5573587
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/lib/channelui.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def add(self, altname=None):
'thumb': icon,
'icon': icon
})

info_labels = {
'title': resultingname,
'sorttitle': resultingname.lower()
}
list_item.setInfo(type='video', infoLabels=info_labels)

xbmcplugin.addDirectoryItem(
handle=self.handle,
url=mvutils.build_url({
Expand Down
5 changes: 5 additions & 0 deletions resources/lib/initialui.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def add(self, altname=None):
else:
resultingname = altname
list_item = xbmcgui.ListItem(label=resultingname)
info_labels = {
'title': resultingname,
'sorttitle': resultingname.lower()
}
list_item.setInfo(type='video', infoLabels=info_labels)
xbmcplugin.addDirectoryItem(
handle=self.handle,
url=mvutils.build_url({
Expand Down

0 comments on commit 5573587

Please sign in to comment.