setResolvedUrl: how does it work?
#1
Hi all,

I'm trying to understand how to use the xbmcplugin.setResolvedUrl(handle, succeeded, listitem) function.

The problem I get now is that my plugin is being called with sys.argv[1] = -1 which causes the call to setResolvedUrl to fail with an error message in the log:
Quote:NOTICE: calling with args: ['plugin://video/tvshack/', '-1', '?url=%2Ftv%2FBetter_Off_Ted%2Fseason_2%2Fepisode_9%2F&mode=2&name=Season+2++ep9.+The+Long+and+Winding+High+Road']

(... some more logging ...)

ERROR: SetResolvedUrl - called with an invalid handle

All that I do when adding an item to resolve to a Folder is make it isFolder=False.
Do I need to do something else?
Anyone have any idea what I'm doing wrong?

Thanks in advance,
G.
Reply
#2
Found this one myself...

You need to set listitem.setProperty('IsPlayable', 'true')

Don't really understand how this works together with addDirectoryItem(.., isFolder=False)

-1 point for XBMC plugin documentation
Reply

Logout Mark Read Team Forum Stats Members Help
setResolvedUrl: how does it work?0