How to run def code when we select the video? Read all plz
#1
Here what I have to create the list'

Code:
liz=xbmcgui.ListItem(Title, iconImage="DefaultVideo.png", thumbnailImage=Poster)
        liz.setInfo( type="Video", infoLabels={ "Title": Title, 'plot': Description } )
        xbmcplugin.addDirectoryItem( handle=int(sys.argv[1]),url=URL1,listitem=liz)

I wanna run this

Code:
def getstream()
url = resolvedurl
(((THis was just a sample)

So I wanna run this getstream and get URL and play when I select a video...

Any ideas?
Reply
#2
my knowledge of our plugin system is very limited, but i think what you're looking for is explained here:
173986 (thread)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
How to run def code when we select the video? Read all plz0