2024-05-11, 07:38
Hi all. When i use setResolvedUrl Kodi just won't play the URL. The URL plays with "xbmc.executebuiltin("PlayMedia("+play_url+")")", but then i can't set title.
I guess my problem is the Handle, when i log it, its "-1". This is my code:
Just nothing happens, even when i use Debug Log no useful info. Shouldn't my Plugin's Handle be something other than -1? Its my first Kodi addon, if anyone has a hint for me it would be great.
I guess my problem is the Handle, when i log it, its "-1". This is my code:
Code:
HANDLE = int(sys.argv[1])
def play(url):
...
play_url = video_infos.get("url")
title = video_infos.get("title")
list_item = xbmcgui.ListItem(label=title, path=play_url)
xbmcplugin.setResolvedUrl(HANDLE, True, listitem=list_item)
Just nothing happens, even when i use Debug Log no useful info. Shouldn't my Plugin's Handle be something other than -1? Its my first Kodi addon, if anyone has a hint for me it would be great.