[mythtv-users] mythfilldatabase --manual for Norwegians

Leif B. Kristensen leif at solumslekt.org
Wed Jul 27 06:47:31 EDT 2005


I'm in the process of setting up a Gentoo MythTV box with a PVR-350.
Among my trials and tribulations, I find that the Perl script tv_grab_no 
used by mythfilldatabase for Norwegian channels, doesn't work without a 
minor modification. I get this error message from mythfilldatabase 
--manual:

----------------- Start of XMLTV output -----------------
2005-07-27 06:58:53.217 New DB connection, total: 3
fetching channel names:
##################################################
fetching data: didn't see title in

<font class=txt size=2><b>08.00</b><br>
<font color=#666666 size=1>(08.02)</font></font> at /usr/bin/tv_grab_no
line 369.
------------------ End of XMLTV output ------------------
Error in 226:13: unexpected end of file

After some investigation, I found that line 368 in the script has to be 
changed from

my $newtitle = $1 if @$row[1] =~ m/2><b>\n(.*)<\/b>/;

to 

my $newtitle = $1 if @$row[1] =~ m/2><b>\n(.*)\n<\/b>/;

Note the extra newline. Probably dagbladet.no has added that one since 
the script was made.
-- 
Leif Biberg Kristensen
http://solumslekt.org/


More information about the mythtv-users mailing list