LinHES Forums
http://forum.linhes.org/

problem running Mythfilldatabase to load data from a file
http://forum.linhes.org/viewtopic.php?f=6&t=8432
Page 1 of 1

Author:  ughpaul [ Fri Feb 10, 2006 11:26 pm ]
Post subject:  problem running Mythfilldatabase to load data from a file

i installed knoppmyth on a pc with no internet conection. i have read that you can get the program guide info loaded by running
"mythfilldatabase --file <sourceid=1> <offest=-1> filename".
i obtained a file of tv listings by using xmltv.exe(which runs tv_grab_na_dd) on a windows machine and putting the file on a cd-rw. however when i run mythfilldatabase the program
runs then tells me "Don't use tv_grab_na_dd, use the internal datadirect grabber". then when i run mythtv i does not have any guide info. any help on loading the tv listings without an internet connection?

also the tv starts tuned to channel 3 and i then i can't change channels. is this problem related to being able to fill mythdatabase?

Author:  alien [ Sat Feb 11, 2006 1:44 pm ]
Post subject: 

I do something very similar. Note that this is customized to my setup, you may need to modify it. Also, the parameter parsing is hard coded, so you may need to change the parameter number of the file name.

I created the following file. I then symlinked (or replaced) tv_grab_de_tvtoday to this file. It assumes that there is a usb stick with the file a.xml in the top level directory. It also assumes /mnt/usb has been set up in fstab.

[EDIT]I forgot to mention, I then set my grabber to tv_grab_de_tvtoday and run mythfilldatabase normally. It then runs the following script instead.

Code:
#!/user/bin/perl

$file_param_num = 9;
$in_file_name = "/mnt/usb/a.xml"
$out_file_name = $ARGV[$file_param_num - 1];

system "mount /mnt/usb";
system "cat $in_file_name | grep -v '<icon ' >> $out_file_name";
system "umount /mnt/usb";

exit;

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/