SVN: toys/rsget.pl/Get/SharingMatrix

sparky sparky at pld-linux.org
Sat Jun 26 01:38:51 CEST 2010


Author: sparky
Date: Sat Jun 26 01:38:51 2010
New Revision: 11577

Modified:
   toys/rsget.pl/Get/SharingMatrix
Log:
- use DELAY instead of waiting


Modified: toys/rsget.pl/Get/SharingMatrix
==============================================================================
--- toys/rsget.pl/Get/SharingMatrix	(original)
+++ toys/rsget.pl/Get/SharingMatrix	Sat Jun 26 01:38:51 2010
@@ -21,8 +21,11 @@
 	GET( $-{_uri} );
 
 	ERROR( "file not found" ) if m#File has been deleted#;
-	LOG( "WARNING: Daily limit reached, download will most likely fail" )
-		if /Your daily download limit is over/;
+
+	if ( $self->{_cmd} ne "check" ) {
+		DELAY( 600, "free limit reached" )
+			if /Your daily download limit is over/;
+	}
 
 	if ( /You are already downloading file/ ) {
 		! m#link_name = '(.*?)';#;
@@ -93,7 +96,7 @@
 	GET( "/ajax_scripts/_get.php?link_id=$-{link_id}&link_name=$-{link_name}&dl_id=$-{dl_id}&password=",
 		keep_referer => 1 );
 
-	RESTART( -irand( 300, 900 ), "download limit reached" )
+	DELAY( 600, "free limit reached" )
 		if /"You can not download now/;
 
 	s/^{//; s/}$//;


More information about the pld-cvs-commit mailing list