Kodi插件 - 播放器中的小标题

时间:2016-05-02 16:53:59

标签: python add-on xbmc kodi

如何在Kodi Player上播放时将这些信息放到视频文件中。 如下图所示' Beck - Mutations'

我搜遍了所有地方,一无所获。

enter image description here

普通代码是这样的。

    li = xbmcgui.ListItem('Title', thumbnailImage='http://exaple.com/image.png')
    contextMenu = []
    li.addContextMenuItems(contextMenu, replaceItems = True)
    li.setInfo( "video", { "Title" : 'Title when Play', "AlbumArtist " : 'Some artist' } )
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url='http://example.com/sample.m3u8', listitem=li)

谢谢

1 个答案:

答案 0 :(得分:0)

我找到了。我之前正在搜索Youtube,很难找到。 最后我明白了。

    li = xbmcgui.ListItem('title', thumbnailImage='http://image.com/image.png')
    li.setInfo( "audio", { "Title" : 'hellop', "Artist" : ['Some artist'], "Studio" : 'canal' } )
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url="http://example.com/sample.m3u8" listitem=li)

我错误地在艺术家标题中添加了空格。删除并将其重命名为Artist。艺术家应该是艺术家的名单。之后它会出现。