Tried the addon development tutorial but can't install
#1
I wrote a video addon following the tutorial on the wiki (http://kodi.wiki/view/HOW-TO:Video_addon). I just modified the video source to a youtube url, everything else is the same.

When I zip and try to install on Kodi I get an error that the addon couldn't be installed but no more info is shown.

The code of addon.py is this:

Code:
import xbmcaddon
import xbmcgui
import xmbcplugin

addon_handle = int(sys.argv[1])

xmbcplugin.setcCntent(addon_handle, 'movies')

url = 'https://www.youtube.com/watch?v=XpICoc65uh0'
li = xmbcgui.ListItem('My first video!', iconImage='DeafultVideo.png')
xmbcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)

xmbcplugin.endOfDirectory(addon_handle)

and in addon.xml:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.menu.items" name="Menu Items Test" version="1.0.1" provider-name="gonzo">
    <requires>
        <import addon="xbmc.python" version="2.14.0"/>
    </requires>
    <extension point="xbmc.python.script" library="addon.py">
        <provides>executable</provides>
    </extension>
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
        <summary lang="en">PMenu Item HW</summary>
        <description lang="en">Example Script to show a video and a menu</description>
        <license>GNU General Public License, v2</license>
        <language></language>
        <forum>http://forum.kodi.tv/</forum>
        <source>https://github.com/</source>
        <website>Kodi.tv</website>
        <email>[email protected]</email>
    </extension>
</addon>


I'm running Kodi 17.1 on a MacOs Sierra
Reply
#2
Debug log.
Reply
#3
The log says:

Code:
ERROR: GetDirectory - Error Getting
Reply
#4
(2017-09-21, 14:47)medicengonzo Wrote: The log says:

Code:
ERROR: GetDirectory - Error Getting

I seriously doubt that the log says that little.
Reply

Logout Mark Read Team Forum Stats Members Help
Tried the addon development tutorial but can't install0