[mythtv] mythfilldatabase and different languages
Stephan Wentz
wentz at gmx.de
Mon Jan 20 17:23:04 EST 2003
ok, as a result from switching from tv_grab_de to nxtvepg i got an xml-file
with several different languages for the category. i'd like to see the
germany-entry (lang="de"), but i guess it always uses the first entry when
there are several available... i looked into the sourcecode of
mythfilldatabase and found that it calls getFirstText(info); when it finds a
category in the xml-file. from the name of the method i'd say that it always
uses the first item... but of course i could be wrong ;-)
if it behaves like this, is it possible to make this configurable? that he
uses "de" instead of "en", when available?
here is a little snippet from the xml-file:
<programme start="20030120140500 +0000" stop="20030120160000 +0000"
pdc-start="20030120150500 +0100" channel="CNI0DC1">
<title>Sportschau live</title>
<desc>
Handball-Weltmeisterschaft: Deutschland - Katar, Vorrunde Gruppe B Übertragung
aus Viseu/Portugal
</desc>
<category lang="en">sports</category>
<category lang="de">Sport</category>
<category lang="fr">Sports</category>
<category lang="en">misc. team sports</category>
<category lang="de">Teamsportarten</category>
<category lang="fr">Autres Sports collectifs</category>
<rating system="age">
<value>2</value>
</rating>
</programme>
bye, stephan
More information about the mythtv-dev
mailing list