def play_channel(channel):
"""Make kodi play a TV channel"""
url = get_channel_url(channel)
play_item = xbmcgui.ListItem("Channel")
play_item.setPath(url)
play_item.setInfo(type='Video', infoLabels={'Title': 'Channel'})
play_item.setProperty("IsPlayable", "true")
xbmcplugin.setResolvedUrl(plugin_handle, True, listitem=play_item)
addon.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录