Installing add-ons that my new add-on needs to work
#1
Hi dears

I am developing an add-on that depend on YouTube add-on to show videos. I am not sure what to include in addon.xml to make the add-on work perfectly without the need to install YouTube add-on separately before installing my add-on.

Please advise
Reply
#2
http://kodi.wiki/view/addon.xml#Examples
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Thank you Mr. Martijn but I am a newbie in development. Can you help me more in this matter?
Reply
#4
Addon.xml for my database cleaner add-on.

PHP Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.database.cleaner"
      name="Video Database Cleaner"
      version="0.5.7"
      provider-name="black_eagle, BatterPudding.">
  <requires>
    <import addon="xbmc.python" version="2.1.0"/>
    <import addon="script.module.myconnpy" version="1.1.7"/>
  </requires>
  <extension point="xbmc.python.script"
            library="default.py" />
  <extension point="xbmc.addon.metadata">
    <platform>all</platform>
    <summary lang="en_GB">A Script to clean Kodi's video database</summary>
    <description lang="en_GB">This program add-on will clean streams, old missing files and general junk from your video database. Works with both MySQL and SQLite libraries.
As well as removing old streams and missing files, the script can optionally remove or rename a specific path.
Please see the README or the forum thread for details (http://forum.kodi.tv/showthread.php?tid=272112).</description>
    <disclaimer lang="en_GB">Whilst every effort has been taken to ensure it doesn't, this script could break your database. Always make sure you back it up !!</disclaimer>
    <forum>http://forum.kodi.tv/showthread.php?tid=272112</forum>
  </extension>
</addon> 


Under <requires> you can see two imports. The first is the python version required by the script. The second is a dependency that the script needs. This is automatically installed from Kodi's default repo.

You will need to do a similar thing, except you will need to specify <import addon="plugin.video.youtube" version="x.y.z" /> or something similar to that.
Learning Linux the hard way !!
Reply
#5
(2016-11-05, 09:33)black_eagle Wrote: Addon.xml for my database cleaner add-on.

PHP Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.database.cleaner"
      name="Video Database Cleaner"
      version="0.5.7"
      provider-name="black_eagle, BatterPudding.">
  <requires>
    <import addon="xbmc.python" version="2.1.0"/>
    <import addon="script.module.myconnpy" version="1.1.7"/>
  </requires>
  <extension point="xbmc.python.script"
            library="default.py" />
  <extension point="xbmc.addon.metadata">
    <platform>all</platform>
    <summary lang="en_GB">A Script to clean Kodi's video database</summary>
    <description lang="en_GB">This program add-on will clean streams, old missing files and general junk from your video database. Works with both MySQL and SQLite libraries.
As well as removing old streams and missing files, the script can optionally remove or rename a specific path.
Please see the README or the forum thread for details (http://forum.kodi.tv/showthread.php?tid=272112).</description>
    <disclaimer lang="en_GB">Whilst every effort has been taken to ensure it doesn't, this script could break your database. Always make sure you back it up !!</disclaimer>
    <forum>http://forum.kodi.tv/showthread.php?tid=272112</forum>
  </extension>
</addon> 


Under <requires> you can see two imports. The first is the python version required by the script. The second is a dependency that the script needs. This is automatically installed from Kodi's default repo.

You will need to do a similar thing, except you will need to specify <import addon="plugin.video.youtube" version="x.y.z" /> or something similar to that.

Thank you sir. Fantastic! It works.. Blush
Reply

Logout Mark Read Team Forum Stats Members Help
Installing add-ons that my new add-on needs to work0