Project

General

Profile

Epgdb » History » Version 10

Dave Chapman, 2012-11-13 01:11

1 1 Dave Chapman
h1. EPG database structure
2 2 Dave Chapman
3
This page is a work-in-progress to document the internal EPG database structure in tvh.
4
5 5 Dave Chapman
The "HTSP" column indicates the name of the field in the HTSP event message.
6
7
The "Populated from" columns indicate which EPG grabbers can populate that field.
8
9 1 Dave Chapman
{{toc}}
10
11 5 Dave Chapman
h2. Brand object - epg_brand_t
12
13 6 Dave Chapman
|\4=. | |\4=.Populated from|
14
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
15
|id|uint32_t|Internal ID|brandId| | | | | |
16
|uri|char*|Unique ID (from grabber)| | | | | | |
17
|title|lang_str_t*|Brand name| | | | | | |
18
|summary|lang_str_t*|Brand summary| | | | | | |
19
|season_count|uint16_t|Total number of seasons| | | | | | |
20
|image|char*|Brand image| | | | | | |
21 8 Dave Chapman
|seasons|epg_season_list_t|Season list| | | | | |
22
|episodes|epg_episode_list_t|Episode list| | | | | |
23 5 Dave Chapman
24
h2. Season object - epg_season_t
25
26 7 Dave Chapman
|\4=. | |\4=.Populated from|
27
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
28
|id|uint32_t|Internal ID|seasonId| | | | | |
29
|uri|char*|Unique ID (from grabber)| | | | | | |
30
|summary|lang_str_t*|Season summary| | | | | | |
31
|number|uint16_t|The season number| | | | | | |
32
|episode_count|uint16_t|Total number of episodes| | | | | | |
33
|image|char*|Season image| | | | | | |
34
|brand|epg_brand_t|Parent brand| | | | | |
35
|episodes|epg_episode_list_t|Episode list| | | | | |
36
37 5 Dave Chapman
38 1 Dave Chapman
h2. Episode object - epg_episode_t
39
40 5 Dave Chapman
|\4=. | |\4=.Populated from|
41
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
42
|id|uint32_t|Internal ID|episodeId| | | | | |
43
|uri|char*|Unique ID (from grabber)| | | | | | |
44
|title|lang_str_t*|Title|title| | | | | |
45
|subtitle|lang_str_t*|Sub-title| | | | | | |
46
|summary|lang_str_t*|Summary|summary*| | | | | |
47
|description|lang_str_t*|An extended description|description*| | | | | |
48
|image|char*|URL of episode image|image| | | | | |
49 10 Dave Chapman
|genre|epg_genre_list_t|Episode genre(s)|contentType| | | | | |
50 5 Dave Chapman
|epnum|epg_episode_num_t|Episode numbering| | | | | | |
51
|is_bw|uint8_t|Is black and white| | | | | | |
52
|star_rating|uint8_t|Star rating|starRating| | | | | |
53
|age_rating|uint8_t|Age certificate|ageRating| | | | | |
54
|first_aired|time_t|Original airdate|firstAired| | | | | |
55
|brand|epg_brand_t*|(Grand-)Parent brand| | | | | | |
56
|season|epg_season_t*|Parent season| | | | | | |
57
|broadcasts|epg_broadcast_list_t|Broadcast list| | | | | | |
58 3 Dave Chapman
59 5 Dave Chapman
* summary/description will be replaced with the versions in the specific broadcast, if they differ.
60 10 Dave Chapman
* contentType contains only the first genre in the case where multiple genres are stored.
61 5 Dave Chapman
62 2 Dave Chapman
h3. Episode numbering object - epg_episode_num_t:
63
64
This is for some back-compat and also to allow episode information to be "collated" into easy to use object
65
66 5 Dave Chapman
|\4=. | |\4=.Populated from|
67
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
68
|s_num|uint16_t|Series number|seasonNumber| | | | | |
69
|s_cnt|uint16_t|Series count|seasonCount| | | | | |
70
|e_num|uint16_t|Episode number|episodeNumber| | | | | |
71
|e_cnt|uint16_t|Episode count|episodeCount| | | | | |
72
|p_num|uint16_t|Part number|partNumber| | | | | |
73
|p_cnt|uint16_t|Part count|partCount| | | | | |
74
|text|char*|Arbitary text description of episode num|episodeOnscreen| | | | | |
75 2 Dave Chapman
76
77 4 Dave Chapman
h2. Broadcast object - epg_broadcast_t
78
79 2 Dave Chapman
This object contains the details of a specific airing (channel & time) of an episode.
80
81
|\3=. | |\4=.Populated from|
82 5 Dave Chapman
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
83
|id|uint32_t|Internal ID|eventId| | | | | |
84
|uri|char*|Unique ID (from grabber)| | | | | | |
85
|dvb_eit|uint16_t|DVB Event ID| | | | | | |
86
|start|time_t|Start time (UTC)|start| | | | | |
87
|stop|time_t|Stop time (UTC)|stop| | | | | |
88
|is_widescreen|uint8_t|Is widescreen| | | | | | |
89
|is_hd|uint8_t|Is HD| | | | | | |
90
|lines|uint16_t|Lines in image (quality)| | | | | | |
91
|aspect|uint16_t|Aspect ratio (*100)| | | | | | |
92
|is_deafsigned|uint8_t|In screen signing| | | | | | |
93
|is_subtitled|uint8_t|Teletext subtitles| | | | | | |
94
|is_new|uint8_t|New series / film premiere| | | | | | |
95
|is_repeat|uint8_t|Repeat screening| | | | | | |
96
|summary|lang_str_t*|Summary|summary*| | | | | |
97
|description|lang_str_t*|An extended description|description*| | | | | |
98
|episode|epg_episode_t*|Link to tvheadend episode object| | | | | | |
99
|serieslink|epg_serieslink_t*|SeriesLink|serieslinkid| | | | | |
100
|channel|struct channel*|Channel being broadcast on|channelId| | | | | |
101
102
* summary/description will override the versions in the episode object
103 9 Dave Chapman
104
h2. SeriesLink object - epg_serieslink_t
105
106
This object represents a related set of broadcasts intended to be automatically recorded by a DVR
107
108
|\3=. | |\4=.Populated from|
109
|_.Field|_.Type|_.Description|_.HTSP| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG|
110
|id|uint32_t|Internal ID|eventId| | | | | |
111
|uri|char*|Unique ID (from grabber)| | | | | | |
112
|broadcasts|epg_broadcast_list_t|List of broadcasts| | | | | | |