Yes, I have been getting this, too. I solved it by getting the lattest version of XMLTV via CVS. Note that the script that was provided in an earlier email did not work for me. I use the following to run xmltv (the --pass option is deprecated already):


#!/bin/sh
todayis=`date +%Y%m%d`
/usr/bin/tv_grab_na_dd --output /home/freevo/xmltv/listings_$todayis.xml --days 7 --tz_offset -0400
sed -ie 's/:/_/g' /home/freevo/xmltv/listings_$todayis.xml
rm -f /tmp/TV.xml
ln -s /home/freevo/xmltv/listings_$todayis.xml /tmp/TV.xml


And I used the following to extract a listing of channels, since the new zap2it has all new codes for the channels. Note that you should replace Rogers Cable with Comcast or Shaw or whereveer you live. Double check the value in the listings file.

#!/usr/bin/perl
while (<STDIN>) {
chomp;
if (/^\s+<channel\sid=\"(.*)\">$/) {
$last_id = $1;
} elsif (/^\s+<display-name.*>(.+)\sRogers\sCable\sInc.<\/display-name>$/) {
$last_name = $1;
} elsif (/^\s+<display-name.*>(.?)<\/display-name>$/) {
$last_chan = $1;
} elsif (/^\s+<display-name.*>(.?.?)<\/display-name>$/) {
$last_chan = $1;
} elsif (/^\s+<\/channel>$/) {
print "('$last_id', '$last_name', '$last_chan'),\n";
}
}


Per.


--__--__--


Message: 6
Date: Sun, 04 Apr 2004 16:34:52 -0400
From: Ross Karchner <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]
Subject: Re: [Freevo-users] xmltv_na stop on the 5th?
Reply-To: [EMAIL PROTECTED]

Is anyone else getting a ton of errors running tv_grab_na_dd?

Like:

Use of uninitialized value in hash element at /usr/bin/tv_grab_na_dd
line 409.

Use of uninitialized value in hash element at /usr/bin/tv_grab_na_dd
line 573.


And other instances of "uninitialized value" errors



-Ross



_________________________________________________________________
MSN Premium includes powerful parental controls and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to