Change the <onclick> actions of a button, don't work. Why?
#1
Hi,
Still learning how all of this work, . I want to add a button in an existing addon, but i loose my hair on that. So i thought:
Why not simply use a button that is of no use to me, and replace the <onclick> value in my advantage.... but NO, Why?

For the moment, the installed script is for test, it only open a xbmcgui.Dialog().yesno(), and launch a xbmcgui.DialogProgressBG(). Allworking

the item i modify:
xml:
<item>
<visible>!String.IsEmpty(Container(10051).ListItem.Plot)</visible>
<property name="icon">plot</property>
<label>$LOCALIZE[207]</label>
<onclick>RunScript(script.embuary.info,call=textviewer,header='$ESCINFO[Container(10051).ListItem.Label]',message='$ESCINFO[Container(10051).ListItem.Plot]')</onclick>
</item>

changing only <onclick line:
xml:
<onclick>RunScript(script.tmdb.downloader)</onclick>
but it still open the  no use plot window.

Whats wrong with that ?
Thanks
Debian trixie  -  Kodi 20.4  -  Embuary skin  -  FireTV Stick
pycharm  &  kodistubs
Reply
#2
Here is the script. It can help
xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.tmdb.downloader" name="TMDB-Downloader" version="1.0.0" provider-name="dehya">
  <requires>
    <import addon="xbmc.python" version="3.0.0"/>
  </requires>
  <extension point="xbmc.python.script" library="addon.py">
    <provides>executable</provides>
  </extension>
.....
  <extension point="xbmc.addon.metadata">
.....
Debian trixie  -  Kodi 20.4  -  Embuary skin  -  FireTV Stick
pycharm  &  kodistubs
Reply
#3
Ok the code was good. I just modify the wrong file.
There is 2 xml files on for the addon, one for the skin. 
I was modifyng the addon's xml. Modifing the skin xml was good.

But i'm confused, can someone explain why it changed nothing with the addon ?
Maybe it was just an example xml file, to be copy paste by the skin team....?

But this one is done. Move to the next step
Debian trixie  -  Kodi 20.4  -  Embuary skin  -  FireTV Stick
pycharm  &  kodistubs
Reply
#4
XML's in the skin will supersede any in the addon.
Reply
#5
Thumbs Up 
Good to know, thanks
Debian trixie  -  Kodi 20.4  -  Embuary skin  -  FireTV Stick
pycharm  &  kodistubs
Reply

Logout Mark Read Team Forum Stats Members Help
Change the <onclick> actions of a button, don't work. Why?0