Databases/TV: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Create Page)
 
(Updated for v18)
Line 10: Line 10:
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 v17 - TV29.db
;Kodi v18 - TV32.db




'''{{red|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.}}'''
'''{{red|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.}}'''




Line 30: Line 31:
|iGroupType || integer ||  
|iGroupType || integer ||  
|-
|-
|iGroupType || varchar(64) || Name of Channel Group
|sName || varchar(64) || Name of Channel Group
|-
|-
|iLastWatched || integer || Last time Channel Group watched
|iLastWatched || integer || Last time Channel Group watched
Line 73: Line 74:
|sEPGScraper || varchar(32) || Source of EPG data
|sEPGScraper || varchar(32) || Source of EPG data
|-
|-
|iLastWatched || integer || Last time channel watched in seconds from 1 Jan 1970
|iLastWatched || integer || Last time channel watched using [[wikipedia:Unix_time|Epoch Time]]
|-
|-
|iClientId || integer ||  
|iClientId || integer ||  
|-
|-
|idEPG || integer ||  
|idEPG || integer ||  
|}
== clients ==
{| 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
|-
|idClient || integer ||
|-
|iPriority || integer ||
|}
|}


Line 119: Line 133:




{{updated|17}}
{{updated|18}}
[[Category:PVR]]
[[Category:PVR]]
[[Category:Index]]
[[Category:Index]]

Revision as of 05:31, 23 April 2019

Kodi Databases

See also:

Home icon grey.png   ▶ Development
▶ Userdata
▶ Databases ▶ TV



TV#.db

The TV#.db database file contains the information for Live-TV channels.

The current stable release of Kodi is using the following version of the database:

Kodi v18 - TV32.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.


channelgroups

Holds the information related to the Channel Groups

Column Name Data Type Description
idGroup integer Primary Key
blsRadio bool Is Radio Group- Y/N
iGroupType integer
sName varchar(64) Name of Channel Group
iLastWatched integer Last time Channel Group watched
blsHidden bool Hidden group? Y/N
iPosition integer


channels

Holds the information related to each TV Channel

Column Name Data Type Description
idChannel integer Primary Key
iUniqueId integer
blsRadio bool Is Radio Channel- Y/N
blsHidden bool Hidden Channel? Y/N
blsUserSetIcon bool Has user set channel icon
blsUerSetName bool Has user set channel name
blsLocked bool Locked channel? Y/N
sIconPath varchar(255) Path to channel logo icon
sChannelName varchar(64) Friendly name of channel
blsVirtual bool Virtual channel? Y/N
bEPGEnabled bool Receive EPG? Y/N
sEPGScraper varchar(32) Source of EPG data
iLastWatched integer Last time channel watched using Epoch Time
iClientId integer
idEPG integer


clients

Column Name Data Type Description
idClient integer
iPriority integer


map_channelgroups_channels

Links Channels to Channel Groups

Column Name Data Type Description
idChannel integer Channel number from channels table
idGroup integer Group number from channelgroups table
iChannelNumber integer Channel number
iSubChannelNumber integer Sub-channel number


version

Database details

Column Name Data Type Description
idVersion integer Database version
iCompressCount integer


Return to top