Kodi Community Forum
Changes to the python API for XBMC Gotham - 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: Changes to the python API for XBMC Gotham (/showthread.php?tid=173943)

Pages: 1 2


RE: Changes to the python API for XBMC Gotham - Martijn - 2014-04-16

Added optional parameter 'ignoreCache' to xbmc.playSFX()
https://github.com/xbmc/xbmc/pull/4491

Quote: /**
* playSFX(filename,[useCached]) -- Plays a wav file by filename
*
* filename : string - filename of the wav file to play.
* useCached : [opt] bool - False = Dump any previously cached wav associated with filename
*
* example:
* - xbmc.playSFX('special://xbmc/scripts/dingdong.wav')
* - xbmc.playSFX('special://xbmc/scripts/dingdong.wav',False)
*/



RE: Changes to the python API for XBMC Gotham - Martijn - 2014-04-16

Added support to provide multiple repositories locations into one single repository add-on.
https://github.com/xbmc/xbmc/pull/3509

Supports:
  • having different locations into one addon.xml repository file
  • filter out the displayed add-ons depending on XBMC version


Example:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.xbmc.org"
        name="XBMC.org Add-ons"
        version="2.1.23"
        provider-name="Team XBMC">
  <requires>
    <import addon="xbmc.addon" version="12.0.0"/>
  </requires>
    <extension point="xbmc.addon.repository"
        name="Official XBMC.org Add-on Repository">
        <dir minversion="12.9.0">
            <info compressed="true">http://mirrors.xbmc.org/addons/gotham/addons.xml</info>
            <checksum>http://mirrors.xbmc.org/addons/gotham/addons.xml.md5</checksum>
            <datadir zip="true">http://mirrors.xbmc.org/addons/gotham</datadir>
            <hashes>true</hashes>
        </dir>
        <info compressed="true">http://mirrors.xbmc.org/addons/frodo/addons.xml</info>
        <checksum>http://mirrors.xbmc.org/addons/frodo/addons.xml.md5</checksum>
        <datadir zip="true">http://mirrors.xbmc.org/addons/frodo</datadir>
        <hashes>true</hashes>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary lang="en">Install Add-ons from XBMC.org</summary>
        <platform>all</platform>
    </extension>
</addon>

https://github.com/xbmc/xbmc/blob/master/addons/repository.xbmc.org/addon.xml


This forum uses Lukasz Tkacz MyBB addons.