ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID
#1
I'm not sure where this goes. It applies anywhere that ActivateWindow() is used. This was a royal pain to track down.

I've tested this in both xbmc.executebuiltin and Favorites. I didn't try jsonRPC, but I assume it'll happen there, too.
So any place you call ActivateWindow(10025,"plugin://plugin.video.fun/something/whatever/{ID}",return) where {ID} is a number, the number is removed. Removing ',return' doesn't make a difference. It's not moved somewhere else. It's just truncated to the trailing /. The solution is to redesign all of my URLs to not end in a number, which is really annoying since that's how proper RESTful URLs are.

Is there a good reason for this, or is it just an annoying bug?
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Reply
#2
(2019-04-07, 10:00)da3dsoul Wrote: I'm not sure where this goes. It applies anywhere that ActivateWindow() is used. This was a royal pain to track down.

I've tested this in both xbmc.executebuiltin and Favorites. I didn't try jsonRPC, but I assume it'll happen there, too.
So any place you call ActivateWindow(10025,"plugin://plugin.video.fun/something/whatever/{ID}",return) where {ID} is a number, the number is removed. Removing ',return' doesn't make a difference. It's not moved somewhere else. It's just truncated to the trailing /. The solution is to redesign all of my URLs to not end in a number, which is really annoying since that's how proper RESTful URLs are.

Is there a good reason for this, or is it just an annoying bug?

This seems to be an ulgy bug, and is reported here: https://github.com/xbmc/xbmc/issues/16516
Reply

Logout Mark Read Team Forum Stats Members Help
ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID0