Changeset 585

Show
Ignore:
Timestamp:
03/03/07 16:16:09 (6 years ago)
Author:
max
Message:

Bugfix flag_aus_hdtv

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • postprocessors/flag_aus_hdtv

    r549 r585  
    1313 
    1414my $progname = "flag_aus_hdtv"; 
    15 my $version = "0.12"; 
     15my $version = "0.13"; 
    1616 
    1717$| = 1; 
     
    370370        print "$status $url\n"; 
    371371 
    372         my $max_retries = 1 if ($dontretry); 
    373  
    374         for (1..3) { 
     372        my $max_tries = 3; 
     373        $max_tries = 1 if ($dontretry); 
     374 
     375        for (1..$max_tries) { 
    375376                $response = $ua->request($request); 
    376377                last if ($response->is_success || $dontretry); 
     
    378379                $stats{http_failed_requests}++; 
    379380                $attempts++; 
    380                 &sleepy("attempt $attempts failed (url $url), sleeping for 10 seconds",10); 
     381                print "Failed attempt # $attempts to retrieve $url\n"; 
     382                unless ($attempts == $max_tries) { 
     383                    print "Sleeping for 10 seconds.\n"; 
     384                    sleep 10; 
     385                } 
    381386        } 
    382387        if (!($response->is_success)) { 
  • status

    r584 r585  
    1313reconciler      reconciler_mk2      0.21 
    1414postprocessor   imdb_augment_data   0.11 
    15 postprocessor   flag_aus_hdtv       0.12 
     15postprocessor   flag_aus_hdtv       0.13 
    1616postprocessor   augment_timezone    0.08 
    1717reference       channel_list        1