def listLiveTvChannelDirs():
data = getlistLiveChannelData()
for tab in data:
url = common.build_url({'action': 'listLiveTvChannels', 'channeldir_name': tab['tabName']})
li = xbmcgui.ListItem(label=tab['tabName'].title(), iconImage=icon_file)
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li, isFolder=True)
xbmcplugin.addSortMethod(handle=addon_handle, sortMethod=xbmcplugin.SORT_METHOD_NONE)
xbmcplugin.addSortMethod(handle=addon_handle, sortMethod=xbmcplugin.SORT_METHOD_LABEL)
xbmcplugin.endOfDirectory(addon_handle, cacheToDisc=True)
评论列表
文章目录