def show_main_menu():
# Create menu directory for the live radios
url = build_url({'mode': 'streams', 'foldername': ADDON.getLocalizedString(30001)})
li = xbmcgui.ListItem(ADDON.getLocalizedString(30001), iconImage='DefaultFolder.png')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url,
listitem=li, isFolder=True)
# Create menu directory for the podcasts
url = build_url({'mode': 'podcasts-radios', 'foldername': ADDON.getLocalizedString(30002)})
li = xbmcgui.ListItem(ADDON.getLocalizedString(30002), iconImage='DefaultFolder.png')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url,
listitem=li, isFolder=True)
xbmcplugin.endOfDirectory(addon_handle)
default.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录