[mythtv-users] Problem with mythfilldatabase and home-brew grabber

Ian Macdonald ian at caliban.org
Sun Sep 10 10:03:35 UTC 2006


I'm in Amsterdam, The Netherlands, where the standard XMLTV grabber,
tv_grab_nl, grabs programme data from tvgids.nl.

Unfortunately, tvgids.nl does not have programme information for many
channels available in the local cable network's digital package.

For that reason, I'm writing a new grabber to pull data from a second

Well, I basically have the grabber written, pulling data and outputting
a valid XMLTV file, but when the program is run via mythfilldatabase,
the latter complains about an unexpected end-of-file:

2006-09-10 11:54:37.036 Updating source #2 (Digital) with grabber tv_grab_nl
2006-09-10 11:54:37.036 ----------------- Start of XMLTV output -----------------
2006-09-10 11:54:37.037 New DB connection, total: 3
2006-09-10 11:54:37.038 Connected to database 'mythconverg' at host: localhost
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="tv_grab_nl_upc">
  <channel id="1.chello.nl">
    <display-name lang="nl">Nederland 1</display-name>
2006-09-10 11:54:37.045 ------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
2006-09-10 11:54:37.047 Updating icons for sourceid: 2
2006-09-10 11:54:37.056 New DB connection, total: 4
2006-09-10 11:54:37.057 Connected to database 'mythconverg' at host: localhost
Updated programs: 0  Unchanged programs: 0
2006-09-10 11:54:37.206 New DB connection, total: 5
2006-09-10 11:54:37.207 Connected to database 'mythconverg' at host: localhost
2006-09-10 11:54:37.209 Data fetching complete.
2006-09-10 11:54:37.209 Adjusting program database end times.
2006-09-10 11:54:37.399     0 replacements made
2006-09-10 11:54:37.400 Marking generic episodes.
2006-09-10 11:54:37.564     Found 0
2006-09-10 11:54:37.565 Marking repeats.
2006-09-10 11:54:37.706     Found 0
2006-09-10 11:54:37.706 Unmarking new episode rebroadcast repeats.
2006-09-10 11:54:37.842     Found 0

Note that the above sample run has only channel data, but no programme
data. In reality, there's much more output, but the error message is the

I can't understand why it's complaining. I've compared the output of my
grabber with various others and it's identical in structure. In fact, if
I cut and paste some output from those others into a shell script called
tv_grab_nl, which cats that output to stdout via a mythfilldatabase run,
I get the same error.

So I think it has less to do with my XML and more to do with how the
script is actually called or where the output goes (although it just
goes to stdout, like all of the grabbers).

This has got to be something really obvious that I'm just not thinking

Does anyone have any ideas?

And what does the '1:1' mean in the error message? Line 1, character 1?
That makes me think that mythfilldatabase doesn't even see the output,
even though it's right there on stdout and printed in the log.

I'd be grateful for any help received.


Ian Macdonald               | Include me out. 
ian at caliban.org             | 
http://www.caliban.org/     | 

More information about the mythtv-users mailing list