Epgdb » History » Version 3
Dave Chapman, 2012-11-13 00:18
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 | {{toc}} |
||
6 | |||
7 | 3 | Dave Chapman | h2. Episode object - epg_episode_t |
8 | |||
9 | |\3=. | |\4=.Populated from| |
||
10 | |_.Field|_.Type|_.Description| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG| |
||
11 | |id|uint32_t|Internal ID| | | | | | |
||
12 | |uri|char*|Unique ID (from grabber)| | | | | | |
||
13 | |title|lang_str_t*|Title| | | | | | |
||
14 | |subtitle|lang_str_t*|Sub-title| | | | | | |
||
15 | |summary|lang_str_t*|Summary| | | | | | |
||
16 | |description|lang_str_t*|An extended description| | | | | | |
||
17 | |image|char*|URL of episode image| | | | | | |
||
18 | |genre|epg_genre_list_t|Episode genre(s)| | | | | | |
||
19 | |epnum|epg_episode_num_t|Episode numbering| | | | | | |
||
20 | |is_bw|uint8_t|Is black and white| | | | | | |
||
21 | |star_rating|uint8_t|Star rating| | | | | | |
||
22 | |age_rating|uint8_t|Age certificate| | | | | | |
||
23 | |first_aired|time_t|Original airdate| | | | | | |
||
24 | |brand|epg_brand_t*|(Grand-)Parent brand| | | | | | |
||
25 | |season|epg_season_t*|Parent season| | | | | | |
||
26 | |broadcasts|epg_broadcast_list_t|Broadcast list| | | | | | |
||
27 | |||
28 | h3. Episode numbering object - epg_episode_num_t: |
||
29 | |||
30 | This is for some back-compat and also to allow episode information to be "collated" into easy to use object |
||
31 | |||
32 | |\3=. | |\4=.Populated from| |
||
33 | |_.Field|_.Type|_.Description| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG| |
||
34 | |s_num|uint16_t|Series number| | | | | | |
||
35 | |s_cnt|uint16_t|Series count| | | | | | |
||
36 | |e_num|uint16_t|Episode number| | | | | | |
||
37 | |e_cnt|uint16_t|Episode count| | | | | | |
||
38 | |p_num|uint16_t|Part number| | | | | | |
||
39 | |p_cnt|uint16_t|Part count| | | | | | |
||
40 | |text|char*|Arbitary text description of episode num| | | | | | |
||
41 | |||
42 | |||
43 | 2 | Dave Chapman | h2. Broadcast object - epg_broadcast_t |
44 | |||
45 | This object contains the details of a specific airing (channel & time) of an episode. |
||
46 | |||
47 | |\3=. | |\4=.Populated from| |
||
48 | |_.Field|_.Type|_.Description| |_.DVB EIT|_.OpenTV|_.XML TV|_.PyEPG| |
||
49 | |id|uint32_t|Internal ID| | | | | | |
||
50 | |uri|char*|Unique ID (from grabber)| | | | | | |
||
51 | |dvb_eit|uint16_t|DVB Event ID| | | | | | |
||
52 | |start|time_t|Start time (UTC)| | | | | | |
||
53 | |stop|time_t|Stop time (UTC)| | | | | | |
||
54 | |is_widescreen|uint8_t|Is widescreen| | | | | | |
||
55 | |is_hd|uint8_t|Is HD| | | | | | |
||
56 | |lines|uint16_t|Lines in image (quality)| | | | | | |
||
57 | |aspect|uint16_t|Aspect ratio (*100)| | | | | | |
||
58 | |is_deafsigned|uint8_t|In screen signing| | | | | | |
||
59 | |is_subtitled|uint8_t|Teletext subtitles| | | | | | |
||
60 | |is_new|uint8_t|New series / film premiere| | | | | | |
||
61 | |is_repeat|uint8_t|Repeat screening| | | | | | |
||
62 | |summary|lang_str_t*|Summary text| | | | | | |
||
63 | |description|lang_str_t*|Description| | | | | | |
||
64 | |episode|epg_episode_t*|Link to tvheadend episode object| | | | | | |
||
65 | |serieslink|epg_serieslink_t*|SeriesLink| | | | | | |
||
66 | |channel|struct channel*|Channel being broadcast on| | | | | | |