Kodi Community Forum
ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID (/showthread.php?tid=342791)



ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID - da3dsoul - 2019-04-07

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?


RE: ActivateWindow with "plugin://plugin.video.fun/go/somewhere/with/{ID}" Removes ID - michaelarnauts - 2019-09-09

(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