Kodi Community Forum
v17 Settings, type action : open a specific end point of current addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: v17 Settings, type action : open a specific end point of current addon (/showthread.php?tid=338644)



Settings, type action : open a specific end point of current addon - yannbrrd - 2018-12-24

Hello,

Is it possible somehow to tell settings to open a specific endpoint in my addon ? The latter does not work... /languages is an entry point in my plugin...
xml:
<setting id="select_language" type="action" label="32002" action="RunPlugin(plugin.yab.test, /languages)" option="close" />

Doable ?

Thanks.
Yann


RE: Settings, type action : open a specific end point of current addon - ronie - 2018-12-24

you'll likely need to use an ActivateWindow() action.

the easiest way to get the needed code is to add the endpoint to your favourites,
next open the favourites.xml file (found in the userdata folder) and search for the bit that looks like
ActivateWindow(10025,&quot;plugin://plugin.video.youtube/special/popular_right_now/&quot;,return)


RE: Settings, type action : open a specific end point of current addon - yannbrrd - 2018-12-24

Hey,

Thanks i

Unfortunately, when I click, noting happens :
xml:
<setting id="select_language" type="action" label="32002" action="ActivateWindow(10025, plugin://plugin.yab.test/languages)" option="close" />

Logs says  nothing in fact...

Sad


RE: Settings, type action : open a specific end point of current addon - yannbrrd - 2018-12-24

Frustrating. Favourite works like a charm, and not action from settings... Sad


RE: Settings, type action : open a specific end point of current addon - yannbrrd - 2018-12-28

OK it's fixed using Container.Update Smile

Thanks


RE: Settings, type action : open a specific end point of current addon - bigretromike - 2019-02-20

off topic, sorry. can be deleted.