SVN: toys/rsget.pl/Get/RapidShare

sparky sparky at pld-linux.org
Tue Oct 5 01:20:46 CEST 2010


Author: sparky
Date: Tue Oct  5 01:20:46 2010
New Revision: 11828

Modified:
   toys/rsget.pl/Get/RapidShare
Log:
- added handling of multidownload error


Modified: toys/rsget.pl/Get/RapidShare
==============================================================================
--- toys/rsget.pl/Get/RapidShare	(original)
+++ toys/rsget.pl/Get/RapidShare	Tue Oct  5 01:20:46 2010
@@ -22,7 +22,9 @@
 	GET( $-{_uri} );
 
 	ERROR( "file not found: $1" )
-		if /^ERROR: (.*)/ and substr( $1, 0, 16 ) ne "You need to wait";
+		if /^ERROR: (.*)/
+			and substr( $1, 0, 16 ) ne "You need to wait"
+			and substr( $1, 0, 17 ) ne "You need RapidPro";
 
 	GOTO stage_uri_complete
 		unless m{<script type="text/javascript">location="(.*?)"};
@@ -35,6 +37,8 @@
 	
 	CLICK( "http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&try=1&fileid=$-{id}&filename=$-{name}" );
 
+	MULTI( $1 )
+		if /^(ERROR: You need RapidPro.*)/;
 	RESTART( $2, "free limit reached: $1" )
 		if /^(ERROR: You need to wait (\d+) seconds.*)/;
 


More information about the pld-cvs-commit mailing list