Feature #4441
pass to client or parse more information from XMLTV
0%
Description
Hi
I saw XMLTV delivery many information like on example:
<programme start="20170621100000 +0200" stop="20170621110000 +0200" channel="CBS Action"> <title lang="pl">Agenci NCIS</title> <title lang="xx">Navy NCIS: Naval Criminal Investigative Service</title> <desc lang="pl">Gibbs zostaje ranny w zamachu terrorystycznym. Członkowie jego zespołu są przygnębieni. Tony zastępuje szefa. Jego decyzja wzbudza niechęć pozostałych agentów. Tymczasem Gibbs powoli wraca do zdrowia. Ma czas na rozmyślania. Próbuje sobie poradzić ze wspomnieniami, które od dawna próbował wymazać z pamięci</desc> <credits> <director>Dennis Smith</director> <actor>Mark Harmon</actor> <actor>Michael Weatherly</actor> <actor>Pauley Perrette</actor> <actor>David McCallum</actor> <actor>Sean Murray</actor> <actor>Cote de Pablo</actor> <actor>Lauren Holly</actor> </credits> <date>2006</date> <category lang="pl">Serial Sensacyjny</category> <icon src="http://ocdn.eu/images/program-tv/MmQ7MDA_/b1065f71c129750b882a1e20274a1589.jpg" /> <country>USA</country> <episode-num system="onscreen">S3 E23</episode-num> <rating> <value>12</value> </rating> </programme>
but information like:
- country
- date
- actor
- director
and maybe more
are not pass to client - like pvr.hts kodi ...
i uderstand some information are not important to parse and show on TVH WebUI - but at least could be forwarded to client ...
History
Updated by piotr galek over 7 years ago
PS. all that additional fields are available in kodi epg database
https://github.com/xbmc/xbmc/blob/master/xbmc/pvr/epg/EpgInfoTag.cpp#L577
Updated by Em Smith about 7 years ago
We now publish extra information to clients if it is available and the option is enabled in the grabber. This is the server-side change only and no patches have been done for the Kodi side since I can't easily cross-compile it to test. Please refer any Kodi developers to this request for details of the additional fields we publish.
Enabling the option can use considerable memory on the server and the clients, especially if you have hundreds of channels with tens of actors per programme and a tv guide stretching several weeks in the future.
I suggest the pvr hts modification should have a tick box to disable passing the data to Kodi even if it is available to avoid low-spec machines being overwhelmed due to limited memory.
The htsp has been updated to have the extra information, for example:
{ 'category': ['Action', 'Drama', 'Episode', 'Series', 'series'], 'credits': { 'Branscombe Richmond': 'guest', 'Bruce Glover': 'guest', 'Cherie Michan': 'guest', 'Craig R. Baxley': 'director', 'Dennis Franz': 'guest', 'Dirk Benedict': 'actor', 'Dwight Schultz': 'actor', 'Garnett Smith': 'guest', 'George Peppard': 'actor', 'Lloyd Bochner': 'guest', 'Maylo McCashlin': 'guest', 'Mr. T': 'actor'}, 'method': 'eventAdd', ... Example: { 'category': ['Feature Film', 'Movie', 'Western', 'movie'], 'copyrightYear': 1947, 'credits': { 'Andre de Toth': 'director', 'Arleen Whelan': 'actor', ... 'Veronica Lake': 'actor'}, 'keyword': [ '1880s',... 'Tense'], 'method': 'eventUpdate',
[[https://github.com/tvheadend/tvheadend/pull/997]]
Updated by Em Smith about 7 years ago
Following implementation in pvr.hts, a few clarifications are necessary for other people implementing a client.
The above sample message didn't show a few other roles we pass through for credits which are in
[[https://github.com/tvheadend/tvheadend/blob/master/src/epggrab/module/xmltv.c]]
They are currently actor, director, guest, presenter, and writer.
The credits is a htsmsg_map since it is a name/value mapping and hstmsg_list can't have a name for the field.