Databases/Addons: Difference between revisions
Update for v22 Tag: Reverted |
Tag: Undo |
||
| Line 4: | Line 4: | ||
= | = Addons#.db = | ||
The | The Addons#.db database contains the information on all Kodi addons such as skins, scraper, video-addons etc | ||
The current stable release of {{kodi}} is using the following version of the database: | The current stable release of {{kodi}} is using the following version of the database: | ||
;Kodi v22 - | ;Kodi v22 - Addons33.db | ||
| Line 16: | Line 16: | ||
== | == addonlinkrepo == | ||
Links the Add-on to the Repository | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:130px; text-align:left;" | Column Name | ! style="width:130px; text-align:left;" | Column Name | ||
! style="width:100px; text-align:left;" | Data Type | ! style="width:100px; text-align:left;" | Data Type | ||
! style="width:400px; text-align:left;" | Description | ! style="width:400px; text-align:left;" | Description n | ||
|- | |- | ||
| | |idRepo || integer || Foreign key to [[Databases/Addons#repo|repo table]] | ||
|- | |- | ||
| | |idAddon || integer || Foreign key to [[Databases/Addons#addons|addons table]] | ||
| | |||
|} | |} | ||
== | |||
== addons == | |||
Details relating to the add-on | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:130px; text-align:left;" | Column Name | ! style="width:130px; text-align:left;" | Column Name | ||
! style="width:100px; text-align:left;" | Data Type | ! style="width:100px; text-align:left;" | Data Type | ||
! style="width:400px; text-align:left;" | Description | ! style="width:400px; text-align:left;" | Description | ||
|- | |- | ||
| | |id || integer || Primary Key | ||
|- | |- | ||
| | |metadata || blob || | ||
|- | |- | ||
| | |addonID || text || ID of the Add-on | ||
|- | |- | ||
| | |version || text || Add-on version | ||
|- | |- | ||
| | |name || text || Add-on friendly name | ||
|- | |- | ||
| | |summary || text || Short friendly description | ||
|- | |- | ||
| | |news || text || Notes | ||
|- | |- | ||
| | |description || text || Extended description of add-on | ||
|- | |} | ||
| | |||
== installed == | |||
Add-ons that have been installed, showing status and usage details | |||
{| class="wikitable" | |||
! style="width:130px; text-align:left;" | Column Name | |||
! style="width:100px; text-align:left;" | Data Type | |||
! style="width:400px; text-align:left;" | Description | |||
|- | |- | ||
| | |id || integer || Primary Key | ||
|- | |- | ||
| | |addonID || text || Foreign key to [[Databases/Addons#addons|addons table]] | ||
|- | |- | ||
| | |enabled || boolean || 0/1 - No / Yes | ||
|- | |- | ||
| | |installDate || text || Date add-on was installed | ||
|- | |- | ||
| | |lastUpdated || text || Date add-on was last updated | ||
|- | |- | ||
| | |lastUsed || text || Date add-o was last used | ||
|- | |- | ||
| | |origin || text || Originating Repository<br> | ||
*A hash (if it's b6a50484-93a0-4afb-a01c-8d17e059feda) means ORIGIN_SYSTEM<br> | |||
*blank means MANUAL (or from ZIP) install<br> | |||
*anything else is installed from a REPOSITORY.<br> | |||
See: [https://github.com/xbmc/xbmc/blob/592fdeef613d44e0f8a8d6375a900435d34ded3b/xbmc/addons/addoninfo/AddonInfo.h#L30-L57 Github] | |||
|- | |- | ||
| | |disabledReason || Integer || NONE = 0<br>USER = 1<br>INCOMPATIBLE = 2<br>PERMANENT_FAILURE = 3<br> | ||
See: [https://github.com/xbmc/xbmc/blob/592fdeef613d44e0f8a8d6375a900435d34ded3b/xbmc/addons/addoninfo/AddonInfo.h#L30-L57 Github] | |||
|} | |} | ||
== | |||
== package == | |||
Details of downloaded zip files for installation. Can be used to roll-back to previous versions. Does not include add-ons installed using ''Install via zip file'' method. | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:130px; text-align:left;" | Column Name | ! style="width:130px; text-align:left;" | Column Name | ||
! style="width:100px; text-align:left;" | Data Type | ! style="width:100px; text-align:left;" | Data Type | ||
! style="width:400px; text-align:left;" | Description | ! style="width:400px; text-align:left;" | Description | ||
|- | |- | ||
| | |id || integer || Primary Key | ||
|- | |- | ||
| | |addonID || text || Foreign key to [[Databases/Addons#addons|addons table]] | ||
|- | |||
|filename || text || Path and name of add-on zip file | |||
|- | |||
|hash || text || Hash security check of zip file | |||
|} | |} | ||
== | |||
== repo == | |||
Details related to the Repository | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:130px; text-align:left;" | Column Name | ! style="width:130px; text-align:left;" | Column Name | ||
! style="width:100px; text-align:left;" | Data Type | ! style="width:100px; text-align:left;" | Data Type | ||
! style="width:400px; text-align:left;" | Description | ! style="width:400px; text-align:left;" | Description | ||
|- | |- | ||
| | |id || integer || Primary Key | ||
|- | |- | ||
| | |addonID || text || Foreign key to [[Databases/Addons#addons|addons table]] | ||
|- | |- | ||
| | |checksum || text || Hash of the repository | ||
|- | |- | ||
| | |lastcheck || text || Last time Repository was checked for updates | ||
|- | |- | ||
| | |version || text || Installed version of the repository | ||
|- | |- | ||
| | |nextcheck || text || Next scheduled check for updates | ||
|- | |} | ||
| | |||
== update_rules == | |||
How non-official repositories are updated | |||
{| class="wikitable" | |||
! style="width:130px; text-align:left;" | Column Name | |||
! style="width:100px; text-align:left;" | Data Type | |||
! style="width:400px; text-align:left;" | Description | |||
|- | |- | ||
| | |id || integer || Primary Key | ||
|- | |- | ||
| | |addonID || text || Foreign key to [[Databases/Addons#addons|addons table]] | ||
|- | |- | ||
| | |updateRule || Integer || Any = 0<br> | ||
::used internally, not to be explicitly set<br> | |||
User Disabled Auto Update = 1<br> | |||
::automatic updates disabled via AddonInfo dialog<br> | |||
Pin Old Version = 2<br> | |||
::user downgraded to an older version<br> | |||
See: [https://github.com/xbmc/xbmc/blob/592fdeef613d44e0f8a8d6375a900435d34ded3b/xbmc/addons/addoninfo/AddonInfo.h#L30-L57 Github] | |||
|} | |} | ||
| Line 184: | Line 162: | ||
! style="width:130px; text-align:left;" | Column Name | ! style="width:130px; text-align:left;" | Column Name | ||
! style="width:100px; text-align:left;" | Data Type | ! style="width:100px; text-align:left;" | Data Type | ||
! style="width:400px; text-align:left;" | Description | ! style="width:400px; text-align:left;" | Description | ||
|- | |- | ||
|idVersion || integer || Database version | |idVersion || integer || Database version | ||
| Line 190: | Line 168: | ||
|iCompressCount || integer || Number of times database has been compressed | |iCompressCount || integer || Number of times database has been compressed | ||
|} | |} | ||
| Line 202: | Line 175: | ||
[[Category:PVR]] | [[Category:PVR]] | ||
[[Category:Add-ons]] | |||
[[Category:Karellen]] | [[Category:Karellen]] | ||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Video library]] | |||
[[Category:Music library]] | |||
[[Category:Skin_development]] | |||
Latest revision as of 23:11, 13 October 2026
Kodi Databases
See also: |
|---|
Addons#.db
The Addons#.db database contains the information on all Kodi addons such as skins, scraper, video-addons etc
The current stable release of Kodi is using the following version of the database:
- Kodi v22 - Addons33.db
Warning: The databases are critical components of Kodi. We strongly urge that you do not interfere with them, unless you have knowledge and experience with database designs.
addonlinkrepo
Links the Add-on to the Repository
| Column Name | Data Type | Description n |
|---|---|---|
| idRepo | integer | Foreign key to repo table |
| idAddon | integer | Foreign key to addons table |
addons
Details relating to the add-on
| Column Name | Data Type | Description |
|---|---|---|
| id | integer | Primary Key |
| metadata | blob | |
| addonID | text | ID of the Add-on |
| version | text | Add-on version |
| name | text | Add-on friendly name |
| summary | text | Short friendly description |
| news | text | Notes |
| description | text | Extended description of add-on |
installed
Add-ons that have been installed, showing status and usage details
| Column Name | Data Type | Description |
|---|---|---|
| id | integer | Primary Key |
| addonID | text | Foreign key to addons table |
| enabled | boolean | 0/1 - No / Yes |
| installDate | text | Date add-on was installed |
| lastUpdated | text | Date add-on was last updated |
| lastUsed | text | Date add-o was last used |
| origin | text | Originating Repository
See: Github |
| disabledReason | Integer | NONE = 0 USER = 1 INCOMPATIBLE = 2 PERMANENT_FAILURE = 3 See: Github |
package
Details of downloaded zip files for installation. Can be used to roll-back to previous versions. Does not include add-ons installed using Install via zip file method.
| Column Name | Data Type | Description |
|---|---|---|
| id | integer | Primary Key |
| addonID | text | Foreign key to addons table |
| filename | text | Path and name of add-on zip file |
| hash | text | Hash security check of zip file |
repo
Details related to the Repository
| Column Name | Data Type | Description |
|---|---|---|
| id | integer | Primary Key |
| addonID | text | Foreign key to addons table |
| checksum | text | Hash of the repository |
| lastcheck | text | Last time Repository was checked for updates |
| version | text | Installed version of the repository |
| nextcheck | text | Next scheduled check for updates |
update_rules
How non-official repositories are updated
| Column Name | Data Type | Description |
|---|---|---|
| id | integer | Primary Key |
| addonID | text | Foreign key to addons table |
| updateRule | Integer | Any = 0
User Disabled Auto Update = 1
Pin Old Version = 2
See: Github |
version
Database details
| Column Name | Data Type | Description |
|---|---|---|
| idVersion | integer | Database version |
| iCompressCount | integer | Number of times database has been compressed |
| Return to top |
|---|