2016-05-02 51 views
0

如何在Kodi播放器上播放時將這些信息放到視頻文件中。 如下圖所示'貝克 - 突變'科迪附加組件 - 播放器中的小標題

我已經搜遍了每一個地方,什麼都找不到。

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) 

謝謝

回答

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) 

我錯誤地在藝術家標題中添加空間。刪除並重命名爲藝術家。藝術家應該是藝術家的名單。之後它會出現。