plugin://plugin.video.pulsar/show/%s/season/%s/episode/%s/links results in 302
Closed this issue · 1 comments
I'm trying to ask pulsar to start video's using the endpoint:
plugin://plugin.video.pulsar/show/%s/season/%s/episode/%s/links
or
plugin://plugin.video.pulsar/show/%s/season/%s/episode/%s/play
I'm doing this by simply building a listItem and adding them as a directoryitem :
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
In the case of the /links, it does show me a list from which I can choose a source. When I click the link nothing happens. The log ends with the following
20:25:49 T:123145302839296 WARNING: Attempt to use invalid handle -1
20:25:49 T:123145317560320 NOTICE: [plugin.video.pulsar] [GIN] 2015/10/30 - 20:25:49 | 302 | 11.248275893s | 127.0.0.1:63905 | GET /show/******/season/**/episode/*/links
I suspect I need to pass the window handle, but I don't know where or how it is expected.
/play has the same problem. The difference is, the warning about the invalid handle shows up a bit earlier in the logs. It still ends with the [GIN] 302.
Any idea what I'm doing wrong?
I believe I found the answer to the problem myself. The listItem that I created in my plugin requires the property isPlayable set to true.
listItem = xbmcgui.ListItem("Some Title")
listItem.setProperty('IsPlayable', 'true')