[mythtv] my old problem again: mythfilldatabase ;-)

Daniel Paessler daniel at paessler.org
Wed Feb 19 19:56:45 EST 2003


Am Mit, 2003-02-19 um 12.29 schrieb Erik Arendse:
> At 17-2-03 18:07, Daniel Paessler wrote:
> > > >the problem is the format of my tv.xml file. the channel information
> > > >has the following format channel="name" and some of the names contain
> > > >whitespaces, as for example channel="RTL 2" and here's my problem.
> > > >mythfilldatabase only fetches the first part of that name and so i get
> > > >a conflict with channel="RTL" and the database is not filled correctly.
> > >
> > > Is the problem the --xawchannel import of the channels, or the --file
> > > import of the programs?
> >
> >the --xawchannel works correct, the spaces are taken into the database
> >and the channelnames are ok...
> >for channel called "RTL 2" the --file option gets the data for the
> >channel called "RTL" for example...it takes only the part before the
> >space...
> 
> I spit around in mythfilldatabase, what you describe is not a bug but a 
> feature...
> I presume you are seeing
>    <channel id="RTL 2">
> in your file and not
>    <channel="RTL 2">
> as you describe above?
> mythfilldatabase uses the first word as the ID, the second will become the tag.
> 

it's channel and not channel id, believe me ;-)
here's a short part...

--snipp--

  <programme start="200302140110 +0100" stop="200302140140 +0100"
channel="HESSEN">
    <title lang="de">Hessenschau</title>
    <desc lang="de">Mit Holger Weinert</desc>
    <category>unbekannt</category>
    <language>de</language>
    <length units="minutes">30</length>
  </programme>
  <programme start="200302140110 +0100" stop="200302140255 +0100"
channel="RTL 2">
    <title lang="de">Herz einer Unbeugsamen</title>
    <desc lang="de">(ShowView 96-79-849)</desc>
    <category>unbekannt</category>
    <language>de</language>
    <length units="minutes">105</length>
  </programme>
  <programme start="200302140110 +0100" stop="200302140140 +0100"
channel="SAT.1">
    <title lang="de">Das Making of  und quot;Gangs of New York und
quot;</title>    <desc lang="de">(ShowView 90-38-424)</desc>
    <category>unbekannt</category>
    <language>de</language>
    <length units="minutes">30</length>

--snipp--


> Without changing mythfilldatabase it is easier to adopt your grabber, just 
> have it strip out any spaces from the id before writing. Just don't forget 
> to change your xawtv setings the same way.
> 
> "RTL 2" is a messy id anyway, it is human-text. The XMLTV DTD suggest using 
> RFC2836, ending up with an id like "tv:2.rtl.de" for this station, or 
> perhaps "tv:rtl2.de".
> 
> Erik
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
-- 
email: daniel at paessler.org / phone: +49 3722 83884
fax: +49 89 244365117     / web: www.paessler.org

The software package said 'Requires Windows 95 or better',
so I installed Linux  ;-)




More information about the mythtv-dev mailing list