def browse_main_explore(self):
# explore nodes
xbmcplugin.setContent(self.addon_handle, "files")
xbmcplugin.setProperty(self.addon_handle, 'FolderName', self.addon.getLocalizedString(11014))
items = []
items.append(
(self.addon.getLocalizedString(11015),
"plugin://plugin.audio.spotify/?action=browse_playlists&applyfilter=featured",
"DefaultMusicPlaylists.png"))
items.append(
(self.addon.getLocalizedString(11016),
"plugin://plugin.audio.spotify/?action=browse_newreleases",
"DefaultMusicAlbums.png"))
# add categories
items += self.get_explore_categories()
for item in items:
li = xbmcgui.ListItem(
item[0],
path=item[1],
iconImage=item[2]
)
li.setProperty('do_not_analyze', 'true')
li.setProperty('IsPlayable', 'false')
li.setArt({"fanart": "special://home/addons/plugin.audio.spotify/fanart.jpg"})
li.addContextMenuItems([], True)
xbmcplugin.addDirectoryItem(handle=self.addon_handle, url=item[1], listitem=li, isFolder=True)
xbmcplugin.addSortMethod(self.addon_handle, xbmcplugin.SORT_METHOD_UNSORTED)
xbmcplugin.endOfDirectory(handle=self.addon_handle)
plugin_content.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录