How to use with mythtv

Asked by joedekangeroe

Hi

How do you tell mythtv to use 'mono TVgrabber.exe' with mythfilldatabase?

Question information

Language:
English Edit question
Status:
Solved
For:
BelGuide Edit question
Assignee:
No assignee Edit question
Solved by:
Hulkie
Solved:
Last query:
Last reply:
Revision history for this message
Hulkie (hulkie2) said :
#1

Hey,

My Myth-box is not connected to the internet, so I download the guide once a week and then fill the database 'manually'. I think that is the best way to do it for you as well.

try to following first:
$mono TVgrabber.exe
$mythfilldatabase --file ~/Desktop/xmltv.xml

and see if everything works out ok. If it does, you can make a small script containing the above two lines and insert it in a cron job.

Hope this helps.
Sam.

Revision history for this message
joedekangeroe (curd-delsemme) said :
#2

I get this when running "mythfilldatabase --file test 1 ~/Desktop/xmltv.xml" (I had to use this command because without the "test 1" it gave an error)

Unknown xmltv channel identifier

I get this for all my channels. I changed:

public string TranslateChannel(string input) {
   string output=input;
   switch (input) {
    case "n":
     output="een";
     break;
    case "Canvas":
     output="canvas";
     break;

But I don't know where to find the correct name.

(Sorry for messing up your posts.)

Revision history for this message
joedekangeroe (curd-delsemme) said :
#3

Ah sorry for my stupid question. Even I could find the solution. I gave the wrong sourceid with mythfilldatabase (test should have been 1)

Revision history for this message
joedekangeroe (curd-delsemme) said :
#4

This time, I have a real problem

When I run "mythfilldatabase --file 1 -1 ~/Desktop/xmltv.xml" everything runs without an error an data is inserted in the program guide. But everything is 2 hours late in the guide.

Revision history for this message
Best Hulkie (hulkie2) said :
#5

Hey,

If I understand correctly you were able to download the source code and re-compile it yourself. In that case, I think you can also fix the time delay problem. In line 114 of ProgrammaGids.cs you find:

string achtervoegsel=" +0000";

Try changing this to " +0200" and recompile. I had no idea what this was for but perhaps it has to do with using local time or universal time.
Hope this helps.

Revision history for this message
joedekangeroe (curd-delsemme) said :
#6

Thanks samdehaeck, that solved my question.