On Fri, 5 Aug 2005 01:17 pm, Paul Andreassen wrote:
> Could you please change your $days_to_grab to 8 instead of the 14.  From my
> understand of web servers, I believe requests to unexisting pages will
> generate errors and this will draw the attention of the administrator.  And
> we don't want that. ;-)

Sorry about the self reply.

An improvement over my previous post is to change $days_to_grab to 7 and use 
the included patch.  This gets a full 7 days of data, which is all ninemsn 
has.

Paul
-- 
--- tv_grab_au.28.pl	2005-08-05 13:44:51.976370664 +1000
+++ tv_grab_au.29.pl	2005-08-05 13:35:43.115810152 +1000
@@ -112,6 +112,9 @@
 #  - changes for Sydney
 #  David Whyte
 #  - Added ABC 2 to Brisbane, which is channel 3 for me :P
+# 5 Aug 2005
+#  Paul
+#  - get part day
 
 
 use strict;
@@ -166,7 +169,7 @@
 #my $XMLTVID_URL = "tv_grab_au.com.au";
 
 # change to how you think it should work
-my $days_to_grab = 14;
+my $days_to_grab = 7;
 my $threads = 2;
 my $retrys = 3;
 my $seconds_before_retry = 2;
@@ -410,7 +413,7 @@
 
 print "loading queue\n";
 my $currentday = $yesterday;
-my $day_counter = 0;
+my $day_counter = -1;
 while ($day_counter <= $days_to_grab) {
 	my $date = &UnixDate($currentday, "%d%m%Y");
 	my @day_lines = get_day($date,1);
@@ -467,7 +470,7 @@
 
 print "building xml structure\n";
 $currentday = $yesterday;
-$day_counter = 0;
+$day_counter = -1;
 while ($day_counter <= $days_to_grab) {
 	my @pids;
 	my $date = &UnixDate($currentday, "%d%m%Y");
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to