I can't figure out Mythfilldatabase syntax (V0.28)

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
mfriesen
Newcomer
Posts: 12
Joined: Tue Sep 15, 2015 3:11 pm
Canada

I can't figure out Mythfilldatabase syntax (V0.28)

Post by mfriesen »

I have an xml file I'd like to import into MythTV ver0.28, but I cant figure out the Mythfilldatabase command structure. I know there is a help file with the "--help" suffix. Using that I've tried every combination of --file --xmlfile I can think of. None of it is making much sense to me.

My guide file is called xmltv.xml. Can someone show me what the correct syntax is to send that file to the database?

I've tried many different ways attempting to figure out the snytax. As an example I tried:

"mythfilldatabase --file xmltv.xml"

That line failed complaining about Boolean values, so I've obviously used the parameters incorrectly.
daraden
Senior
Posts: 175
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: I can't figure out Mythfilldatabase syntax (V0.28)

Post by daraden »

have you tried

Code: Select all

mythfilldatabase --update --file  --xmlfile xmltv.xml
mfriesen
Newcomer
Posts: 12
Joined: Tue Sep 15, 2015 3:11 pm
Canada

Re: I can't figure out Mythfilldatabase syntax (V0.28)

Post by mfriesen »

Well that failed too. First "--update" is depreciated. Changed to what follows, then I got these errors:

Code: Select all

mark@mythtv:~$ mythfilldatabase --only-update-guide --file --xmlfile xmltv.xml
ERROR: --file requires all of the following be defined as well
 --sourceid --xmlfile

mythfilldatabase version: fixes/0.28 [v0.28-35-g812ec08] www.mythtv.org
Option:      --file

Type:        bool
Default:     false
Description: Directly define the sourceid and XMLTV file to import.

Allows the use of:
 --xmlfile

Requires the use of:
 --sourceid --xmlfile

Prevents the use of:
 --dd-file --remove-new-channels
mark@mythtv:~$
Any ideas? The errors don't mean much to a non-programmer like me.
daraden
Senior
Posts: 175
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: I can't figure out Mythfilldatabase syntax (V0.28)

Post by daraden »

you need to add

Code: Select all

--sourceid 1
this tells it to set the data for your first video source. if you have multiple video sources you may need a different number
mfriesen
Newcomer
Posts: 12
Joined: Tue Sep 15, 2015 3:11 pm
Canada

Re: I can't figure out Mythfilldatabase syntax (V0.28)

Post by mfriesen »

Thanks, this seems to have worked:

"mythfilldatabase --file --sourceid 1 --xmlfile xmltv.xml"

It ran and I saw update type messages but my guide is still populated with the OTA EIT data. I think I probably have to go into Mythsetup and change something. Anyway I think you've solved my syntax issue. Thanks again.
Post Reply