[mythtv-users] Customised channel grabbing

Nick Rout nick at rout.co.nz
Wed Jun 29 11:57:17 UTC 2005

Mythtv v 18.1 (gentoo ebuild).

I am in New Zealand and I have found on the net a program that downloads
xml data for NZ TV programs. The data is already in xml format, it is
downloaded from a website already in xmltv format.

How do I incorporate this in mythtv? There seems to be a hard-coded list
of grabbers in the mythsetup gui.

I got brave and tried the following:

1. set up a dummy entry in mythsetup

2. use mysql at the command line to change the dummy entry to my script
tv_grab_nz  [1]:

mysql> UPDATE videosource SET xmltvgrabber = 'tv_grab_nz' WHERE sourceid
= '1';

mysql> select sourceid,name,xmltvgrabber from videosource;
| sourceid | name   | xmltvgrabber |
|        1 | Sky_NZ | tv_grab_nz   |
1 row in set (0.00 sec)

However when i run mythfilldatabase --manual I get this:

mythfilldatabase --manual
### Running in manual channel configuration mode.
### This will ask you questions about every channel.
2005-06-29 23:53:09.362 New DB connection, total: 1
2005-06-29 23:53:09.379 mythfilldatabase: Listings Download Started
2005-06-29 23:53:09.383 New DB connection, total: 2
Grabbing XMLTV data using tv_grab_nz is not verified as working.
2005-06-29 23:53:09.397 New DB connection, total: 3
Adjusting program database end times...
0 replacements made.
2005-06-29 23:53:09.406 mythfilldatabase: Listings Download Finished
Marking repeats...found 0
Unmarking repeats from grabber that fall within our new episode
window...found 0
2005-06-29 23:53:09.418 Connecting to backend server:
(try 1 of 5)
2005-06-29 23:53:09.425 Using protocol version 15

Nothing is downloaded, it takes quite a while to download the data from
the command line when just using the script, and its pretty obvious that
theres no time being spent on the download. Also nothing ends up in the
"program" table in the database (I assume that is the correct table?)

I had a look at filldata.cpp in the source code, and it seems obvious to
me that the error message "Grabbing XMLTV data using tv_grab_nz is not
verified as working." is being generated there. However i frankly see
the whole of c++ as double dutch, so I am not able to do whatever is
necessary to integrate my script in there.

So, where to from here?

[1] not really "my" script as I did not write it, its just shortcut for
"the script I downloaded and am trying to use".
Nick Rout <nick at rout.co.nz>

More information about the mythtv-users mailing list