Changeset 1065

Show
Ignore:
Timestamp:
06/14/08 18:09:05 (5 years ago)
Author:
paul
Message:

sbsnews_website: stop pulling old web page and extend cache life.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/grabbers/sbsnews_website

    r1046 r1065  
    1515 
    1616my $progname = "sbsnews_website"; 
    17 my $version = "0.21"; 
     17my $version = "0.22"; 
    1818 
    1919use XMLTV; 
     
    143143        my $file = "WNC-Schedule.html"; 
    144144 
     145        my $data; 
     146        print "Old webpage no longer exists. Retrieving cache if available. Need new parser.\n"; 
    145147        # 7 days in one URL: http://www.sbs.com.au/whatson/WNC-Schedule.html 
    146         my $data = &Shepherd::Common::get_url( url => "http://www.sbs.com.au/whatson/WNC-Schedule.html", 
    147                     stats => \%stats, 
    148                     retries => 4, 
    149                     debug => $opt->{debug} ? 3 : 1, 
    150                     retry_delay => 120, 
    151                     # the website doesn't support 'If-Modified-Since' headers but we can live in hope 
    152                     mirror => $file); 
    153  
    154         $data = &Shepherd::Common::get_mirror_file($file, 56) if (!$data); 
     148#       my $data = &Shepherd::Common::get_url( url => "http://www.sbs.com.au/whatson/WNC-Schedule.html", 
     149#                   stats => \%stats, 
     150#                   retries => 4, 
     151#                   debug => $opt->{debug} ? 3 : 1, 
     152#                   retry_delay => 120, 
     153#                   # the website doesn't support 'If-Modified-Since' headers but we can live in hope 
     154#                   mirror => $file); 
     155 
     156        $data = &Shepherd::Common::get_mirror_file($file, 84) if (!$data); 
    155157 
    156158        exit 22 unless ($data); 
  • trunk/status

    r1064 r1065  
    66grabber         rex                 3.6.8 
    77grabber         abc_website         3.21 
    8 grabber         sbsnews_website     0.21 
     8grabber         sbsnews_website     0.22 
    99grabber         oztivo              2.18 
    1010grabber         yahoo7web           0.34