Kodi Community Forum

Full Version: ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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