Mythfilldatabase

From MythTV Official Wiki
Jump to: navigation, search

Manual use of mythfilldatabase

If you are in a country where mythfilldatabase will not work the normal way you will need to use the --file flag (e.g. XMLTV does not have a grabber included, or the grabber options are not fully supported by MythTV).

1. Obtain xml file of tv guide

Here in Belgium, I use pytvgrab to get my tv guide and output to an xml file:

$ tv_grab_be_tvb --configure  (you only need this the first time)
$ tv_grab_be_tvb -o belgium.xml

2. Find out the source id of your card

This is normally '1' if you have only one input card, but it is best to check it out because I have found if I have run mythtv setup more than once it can end up being something other than 1. To check, you need to look at the database:

$ mysql -u root mythconverg
mysql> select * from cardinput\G
cardinputid
cardid
sourceid=4
etc.

Remember the source id

3. Run mythfilldatabase with the --file flag

The -1 means to replace all data, belgium.xml is the file name for the output of the grabber as above:

$ mythfilldatabase --file <sourceid> -1 belgium.xml

The first time you will need to use the --manual flag, but this is better explained on the XmlTv page.