SVN: toys/rsget.pl/Get/RapidShark

sparky sparky at pld-linux.org
Sat Jun 5 13:47:20 CEST 2010


Author: sparky
Date: Sat Jun  5 13:47:20 2010
New Revision: 11546

Modified:
   toys/rsget.pl/Get/RapidShark
Log:
- added "free limit reached" detection


Modified: toys/rsget.pl/Get/RapidShark
==============================================================================
--- toys/rsget.pl/Get/RapidShark	(original)
+++ toys/rsget.pl/Get/RapidShark	Sat Jun  5 13:47:20 2010
@@ -35,6 +35,8 @@
 
 	CLICK( $form->post() );
 
+	RESTART( -irand( 60, 600 ), "free limit reached" )
+		if /<p class="err">Wykorzystałeś dzienny limit pobierania/;
 	if ( /Muszisz poczekać (.*) aby pobrać następny plik/ ) {
 		$_ = $1;
 		my $wait = 0;


More information about the pld-cvs-commit mailing list