Author: sparky
Date: Fri Jun 25 21:16:55 2010
New Revision: 11574

Modified:
   toys/rsget.pl/Get/SharingMatrix
Log:
- fixed download limit detection


Modified: toys/rsget.pl/Get/SharingMatrix
==============================================================================
--- toys/rsget.pl/Get/SharingMatrix     (original)
+++ toys/rsget.pl/Get/SharingMatrix     Fri Jun 25 21:16:55 2010
@@ -93,12 +93,14 @@
        GET( 
"/ajax_scripts/_get.php?link_id=$-{link_id}&link_name=$-{link_name}&dl_id=$-{dl_id}&password=",
                keep_referer => 1 );
 
+       RESTART( -irand( 60, 300 ), "download limit reached" )
+               if /"You can not download now/;
+
        s/^{//; s/}$//;
        my %js = map { /^(.*?)\s*:\s*"(.*?)"/ } split /\s*,\s*/, $_;
 
        CLICK_DOWNLOAD( "$js{serv}/download/$js{hash}/$-{dl_id}/" );
 
-       RESTART( -irand( 60, 300 ), "download limit reached" ) if /REMOVED/;
 
        # most likely multi-download
        RESTART( 0, "download error" ) if /Download Error/;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to