SVN: toys/rsget.pl/Get/UploadedTo
    sparky 
    sparky at pld-linux.org
       
    Fri Jun  4 18:27:57 CEST 2010
    
    
  
Author: sparky
Date: Fri Jun  4 18:27:57 2010
New Revision: 11522
Modified:
   toys/rsget.pl/Get/UploadedTo
Log:
- page sometimes asks to wait negative time, worked around
Modified: toys/rsget.pl/Get/UploadedTo
==============================================================================
--- toys/rsget.pl/Get/UploadedTo	(original)
+++ toys/rsget.pl/Get/UploadedTo	Fri Jun  4 18:27:57 2010
@@ -20,8 +20,8 @@
 start:
 	GET( $-{_uri} );
 
-	RESTART( $1 * 60, "free limit reached" )
-		if /Or wait (\d+) minutes/;
+	RESTART( ( $1 > 0 ? $1 * 60 : irand 60 ), "free limit reached" )
+		if /Or wait (-?\d+) minutes/;
 
 	if ( $-{_referer} =~ m#/\?view=# ) {
 		ERROR( "file not found" ) if $-{_referer} =~ /fileremoved/;
    
    
More information about the pld-cvs-commit
mailing list