SVN: toys/rsget.pl/Get/MegaUpload

sparky sparky at pld-linux.org
Sat Dec 4 00:37:19 CET 2010


Author: sparky
Date: Sat Dec  4 00:37:19 2010
New Revision: 11945

Modified:
   toys/rsget.pl/Get/MegaUpload
Log:
- some error detection is back


Modified: toys/rsget.pl/Get/MegaUpload
==============================================================================
--- toys/rsget.pl/Get/MegaUpload	(original)
+++ toys/rsget.pl/Get/MegaUpload	Sat Dec  4 00:37:19 2010
@@ -26,6 +26,15 @@
 start:
 	GET( unify( $-{_uri} ) );
 
+	ERROR( "file not found" )
+		if /Unfortunately, the link you have clicked is not available/;
+
+	ERROR( "not allowed: file larger than 1GB" )
+		if /<span class="down_txt1">The file you are trying to download is larger than/;
+
+	DELAY( 600, "temporarily unavailable" )
+		if /The file you are trying to access is temporarily unavailable/;
+
 	! m{<strong>File size:</strong> ($STDSIZE)<br />}o;
 	my $size = $1;
 


More information about the pld-cvs-commit mailing list