"/usr/bin/tv_grab_na_dd --output /tmp/TV.xml --password-file /root/.xmltv/tv_grab_na_dd.pass --days 1"
run this script, with this command "./xmltv2freevo.pl < /tmp/TV.xml"
###Begin xmltv2freevo.pl script### #!/usr/bin/perl
while (<STDIN>) {
chomp;
if (/^\s+<channel\sid=\"(.*)\">$/) {
$disp_name=0;
$last_id = $1;
} elsif (/^\s+<display-name.*>(.+)<\/display-name>$/) {
if($disp_name==0){
$last_name = $1;
}elsif($disp_name==2){
$last_chan = $1;
$length = length($last_chan);
if($length<=1){
$last_chan="0".$last_chan;
}
}
$disp_name++;
} elsif (/^\s+<\/channel>$/) {
$string="('$last_id', '$last_name', '$last_chan'),";
$hash{$last_chan}=$string;
#print $string;
}
}
for $keys (sort keys %hash){
$output = $hash{$keys};
print "$output\n";
}
###End xmltv2freevo.pl Script###Justin T Wetherell wrote:
According to the xmltv site, tv_grab_na is done. You need to register with zap2it and get a username/pass then use tv_grab_na_dd to get the listings, I made this script to download the listings into a /tmp/TV.xml file. You will need to run tv_grab_na_dd --configure and then put your password into a file located in /root/.xmltv/tv_grab_na_dd.pass
#!/bin/sh
rm -f /tmp/TV.xml
/usr/bin/tv_grab_na_dd --output /tmp/TV.xml --password-file /root/.xmltv/tv_grab_na_dd.pass --days 1
Justin T Wetherell wrote:
Anyone else grabbing listings with tv_grab_na but not gettings any data after april 5th? Anyone tried getting tv_grab_na_dd to work automatically? How do you pass the password prompt?
------------------------------------------------------- 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
------------------------------------------------------- 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
------------------------------------------------------- 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
