summaryrefslogtreecommitdiffstats
path: root/addons/xbmc.python
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 18:07:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 18:07:22 +0000
commitc04dcc2e7d834218ef2d4194331e383402495ae1 (patch)
tree7333e38d10d75386e60f336b80c2443c1166031d /addons/xbmc.python
parentInitial commit. (diff)
downloadkodi-c04dcc2e7d834218ef2d4194331e383402495ae1.tar.xz
kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.zip
Adding upstream version 2:20.4+dfsg.upstream/2%20.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'addons/xbmc.python')
-rw-r--r--addons/xbmc.python/addon.xml15
-rw-r--r--addons/xbmc.python/contextitem.xsd38
-rw-r--r--addons/xbmc.python/icon.pngbin0 -> 5774 bytes
-rw-r--r--addons/xbmc.python/pluginsource.xsd49
-rw-r--r--addons/xbmc.python/script.xsd32
-rw-r--r--addons/xbmc.python/service.xsd18
6 files changed, 152 insertions, 0 deletions
diff --git a/addons/xbmc.python/addon.xml b/addons/xbmc.python/addon.xml
new file mode 100644
index 0000000..983ff9c
--- /dev/null
+++ b/addons/xbmc.python/addon.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<addon id="xbmc.python" version="3.0.1" provider-name="Team Kodi">
+ <backwards-compatibility abi="3.0.0"/>
+ <requires>
+ <import addon="xbmc.core" version="0.1.0"/>
+ </requires>
+ <extension-point id="script" schema="script.xsd"/>
+ <extension-point id="subtitles" schema="script.xsd"/>
+ <extension-point id="lyrics" schema="script.xsd"/>
+ <extension-point id="weather" schema="script.xsd"/>
+ <extension-point id="library" schema="script.xsd"/>
+ <extension-point id="screensaver" schema="script.xsd"/>
+ <extension-point id="plugin" schema="pluginsource.xsd"/>
+ <extension-point id="context.item" schema="contextitem.xsd"/>
+</addon>
diff --git a/addons/xbmc.python/contextitem.xsd b/addons/xbmc.python/contextitem.xsd
new file mode 100644
index 0000000..cc9bbcb
--- /dev/null
+++ b/addons/xbmc.python/contextitem.xsd
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="menu" type="menuType" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="point" type="pointIdentifier" use="required"/>
+ <xs:attribute name="id" type="menuIdentifier"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="itemType">
+ <xs:all>
+ <xs:element name="label" type="xs:string" minOccurs="1"/>
+ <xs:element name="visible" type="xs:string" minOccurs="1"/>
+ </xs:all>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="menuType">
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="label" type="xs:string" minOccurs="0"/>
+ <xs:element name="item" type="itemType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="menu" type="menuType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ <xs:simpleType name="pointIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="kodi\.context\.item"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="menuIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="kodi\.core\.(manage|main)"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
diff --git a/addons/xbmc.python/icon.png b/addons/xbmc.python/icon.png
new file mode 100644
index 0000000..82684e5
--- /dev/null
+++ b/addons/xbmc.python/icon.png
Binary files differ
diff --git a/addons/xbmc.python/pluginsource.xsd b/addons/xbmc.python/pluginsource.xsd
new file mode 100644
index 0000000..55c1150
--- /dev/null
+++ b/addons/xbmc.python/pluginsource.xsd
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="provides" type="providesList" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="medialibraryscanpath" type="pathType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:choice>
+ <xs:attribute name="point" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="simpleIdentifier"/>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="simpleIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="xbmc\.python\.pluginsource"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="providesType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="audio"/>
+ <xs:enumeration value="executable"/>
+ <xs:enumeration value="game"/>
+ <xs:enumeration value="image"/>
+ <xs:enumeration value="video"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="providesList">
+ <xs:list itemType="providesType"/>
+ </xs:simpleType>
+ <xs:simpleType name="contentType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="albums"/>
+ <xs:enumeration value="artists"/>
+ <xs:enumeration value="movies"/>
+ <xs:enumeration value="musicvideos"/>
+ <xs:enumeration value="tvshows"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="pathType">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="content" type="contentType" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+</xs:schema>
diff --git a/addons/xbmc.python/script.xsd b/addons/xbmc.python/script.xsd
new file mode 100644
index 0000000..6e8a4af
--- /dev/null
+++ b/addons/xbmc.python/script.xsd
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="provides" type="providesList" minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:attribute name="point" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="simpleIdentifier"/>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="simpleIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="xbmc\.(python\.(library|lyrics|module|script|weather)|ui\.screensaver|subtitle\.module)"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="providesList">
+ <xs:list itemType="providesType"/>
+ </xs:simpleType>
+ <xs:simpleType name="providesType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="audio"/>
+ <xs:enumeration value="executable"/>
+ <xs:enumeration value="game"/>
+ <xs:enumeration value="image"/>
+ <xs:enumeration value="video"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
diff --git a/addons/xbmc.python/service.xsd b/addons/xbmc.python/service.xsd
new file mode 100644
index 0000000..9a50fe0
--- /dev/null
+++ b/addons/xbmc.python/service.xsd
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:attribute name="point" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="simpleIdentifier"/>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ <xs:attribute name="start" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="simpleIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="xbmc\.service"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>