-
Notifications
You must be signed in to change notification settings - Fork 6
kodi.mediaimporter extension point
The add-on importer provided by Kodi core requires add-ons to implement the kodi.mediaimporter
extension point to be able to support media importing. This page describes what an add-on has to provide / implement to become a media importer.
To implement the kodi.mediaimporter
extension point an add-on must contain the following definition in addon.xml
:
<extension point="kodi.mediaimporter" protocol="<PROTOCOL>" discovery="<DISCOVERY SCRIPT>" library="<IMPORTER SCRIPT>" observer="<OBSERVER SCRIPT>">
<canlookupprovider>true</canlookupprovider>
<providersettings>providersettings.xml</providersettings>
<importsettings>importsettings.xml</importsettings>
</extension>
Attribute | Description | Example |
---|---|---|
point |
Must be "kodi.mediaimporter"
|
|
protocol |
Shown to the user when he wants to manually add a provider. | Emby |
discovery |
Service script executed to discover and track providers. | discovery.py |
library |
Script executed with different actions to import media items. | library.py |
observer |
Service script executed to observe registered providers for changes to imported media items. | observer.py |
This tag expects a boolean value (true
or false
) and tells Kodi whether the media importer implementation supports manually looking up providers.
This tag expects the path to the settings XML file for registered providers.
This tag expects the path to the settings XML file for registered imports.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
The discovery service doesn't have to implement any strict interface. It must be written as a service and use xbmc.Monitor
to detect when the service must be terminated.
TODO
TODO
Media Import: Wiki | Downloads | Issues | Discussion