2013-10-22, 20:36
I used this method for adding each video from my server. Then, i need to get the current time that user play each video >>
How can i do it?
How can i do it?
Code:
def addLink(name,url,iconimage,detail):
u=url
ok=True
replaceItems = True
liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name , "Plot" : detail } )
liz.setProperty('IsPlayable', 'true')
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz)
return ok