def channeltypes(params,url,category):
logger.info("channelselector.mainlist channeltypes")
categoria=category.decode('latin1').encode('utf-8')
if config.get_localized_string(30119) in categoria:
lista = getchanneltypes()
for item in lista:
addfolder(item.title,item.channel,item.action,item.category,item.thumbnail,item.thumbnail)
# Label (top-right)...
import xbmcplugin
xbmcplugin.setPluginCategory( handle=int( sys.argv[ 1 ] ), category="" )
xbmcplugin.addSortMethod( handle=int( sys.argv[ 1 ] ), sortMethod=xbmcplugin.SORT_METHOD_NONE )
xbmcplugin.endOfDirectory( handle=int( sys.argv[ 1 ] ), succeeded=True )
if config.get_setting("forceview")=="true":
# Confluence - Thumbnail
import xbmc
xbmc.executebuiltin("Container.SetViewMode(500)")
else:
listchannels({'action': 'listchannels', 'category': '%2a', 'channel': 'channelselector'},'','*')
channelselector.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录