Hello,
i have tried the examples for HOW-TO:Video_addon (wiki) and HOW-TO:Video_addon (wiki), but when i use the code i’ve written, i can not find the movie information tab in the context menu of the video icon. Is something wrong with my code or is something missing?
My code:
Code:
addon_handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'movies')
url = '/home/user/Videos/something.mkv'
li = xbmcgui.ListItem("VideoTest", iconImage='DefaultVideo.png')
info = {
'genre': 'Fantasy',
'year': 2016,
'title': 'Zootopia',
'studio': 'Disney'
}
li.setInfo('video', info)
li.setProperty('IsPlayable', 'true')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
I have seen many questions on this in this forum, but i can not see my failure. Please help me.