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/}$//;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to