Feature #1908
openOpenTV (28.2E) Genre Codes
Added by Anonymous about 10 years ago. Updated about 10 years ago.
0%
Description
Hello All,
AFAIK the 'G' Genre Codes [[http://www.vdr-wiki.de/wiki/index.php/Epg.data]] are not being parsed from the OpenTV grabber to vdr's EPG.data. It would appear however, that the codes are readily available as the they appear in the 'S' Short Text field. Can these genre codes, present in the 'S' field, be mapped to the 'G' field?
Many thanks.
Files
sky_uk.genres (9.46 KB) sky_uk.genres | guyrichie, 09/12/2014 03:06 PM | ||
user_map.diff (4.48 KB) user_map.diff | dimeptr, 11/17/2014 01:08 AM |
Updated by dimeptr about 10 years ago
Genere codes in 'G' provided in the link you send http://www.vdr-wiki.de/wiki/index.php/Epg.data#G point to: ETSI-Standards EN 300 468.
If you give me a proper way to map the OpenTV values to ETSI-Standard values I would be glad to do it.
Updated by guyrichie about 10 years ago
Hello,
The codes being grabbed appear to be correct. Its just the codes are present in 'S' and not 'G'. For example; below is an extract of my EPG.data entry for a Freesat channel:
C S28.2E-2-2041-9211 Channel 4
E 44518 1410282000 1800 30 FF
T The Simpsons
D The Simpsons Spin-Off Showcase: Troy McClure hosts a vision of the future of the Simpsons in which Chief Wiggum becomes private detective Wiggum, P.I.
G 30
X 1 03 und 16:9
X 2 03 eng
e
...and now an example of the same programme (different episode) but on a channel that receives its EPG via OpenTV:
C S28.2E-2-2030-4703 xxx1
E 679 1410278400 1800 30 FF
T The Simpsons
S - 30'
D How I Wet Your Mother: The family enter Homer's dreams, Inception-style, when he suddenly starts wetting the bed. Guest starring Oscar nominee Glenn Close. (S23, ep 16) Also in HD
e
Notice how in the second example (OpenTV) it has no 'G' entry, yet it has a suitable value for 'G' stored in 'S', namely 30. Is there a way to add the genre code stored in 'S' to be added to a new 'G' entry?
Many thanks.
Updated by dimeptr about 10 years ago
In the provided example, S - 30' means:
No Theme No Genre - 30minutes
It can be removed from the option menu, that is not a Genre code.
This is just a user preference of what to put in the subtitle when there is no real subtitle.
In the Freesat example the genre 30 from the ETSI Standard means:
0x3 0x0 show/game show (general)
In OpenTV sky uk
0x3 0x0 means nothing
and for show you have the following codes:
0x65=Entertainment - Game Show
0x69=Entertainment - Chat Show
now how do I map 0x65 to 0x30 for certain, and this has to be done for all the codes.
You can find the open tv codes in the eepg configuration folder, the files:
sky_uk.themes and sky_it.themes
and you can also see that they do not match even for the two different providers that both use oopentv
Updated by guyrichie about 10 years ago
Ah, I was almost convinced that the data in the 'S' field was the ETSI Genre Code - apologies.
In order to get this to work however, can we not generate a new configuration file, say sky_uk.genres, that will list the OpenTV Genre Codes in column 1 and the ETSI equivalent Genre Code in column 2? i.e.
#SkyUK OpenTV Genre Mapping
#Santax:
#<OpenTV Genre Code> = <ETSI Genre Code>
0x65=30
0x69=30
Then add this mapping/translation to the 'G' field in the OpenTV grabber?
I can do the sky_uk.genres file, but have no idea how to modify the plugin code!
Many thanks.
Updated by dimeptr about 10 years ago
I can create an user definable conversion of Opentv to ETSI when I have time during the next week if you send me the file to provide is as a sample to the other users, but please provide it in the following format:
#SkyUK OpenTV Genre Mapping
#Santax:
#<OpenTV Genre Code> = <ETSI Genre Code> #<OpenTV Description> = <ETSI Description>
0x65=0x30 #Entertainment - Game Show = show/game show (general)
0x69=0x30 #Entertainment - Chat Show = show/game show (general)
Note that the ETSI Genre Code is also in Hex since it is so in the standard
The description would help the users if they want to change it in their own way.
Updated by guyrichie about 10 years ago
- File sky_uk.genres sky_uk.genres added
Hello,
As discussed, please find attached a sample sky_uk.genres file. This should serve well for testing.
I did start to review and play with the C++ code in eepg.c. I am very new to coding, but managed to set a fixed hexadecimal variable and send it to the 'G' field via the function:
Event->SetContents(Contents);
This worked to the extent that all EPG entries were classed as the same genre! However, it proved that the 'G' field in an OpenTV grab was now present and populated.
Many thanks.
Updated by dimeptr about 10 years ago
- File user_map.diff user_map.diff added
Try this patch, according to my tests it works fine, if it also works for you I will commit it in the experimental branch.