Author: pawelz
Date: Sun Aug  1 18:39:18 2010
New Revision: 11742

Modified:
   toys/rsget.pl/Get/MegaUpload
Log:
- catch “The file that you're trying to download is larger than 1 GB” error.
  Only premium users can download such files.


Modified: toys/rsget.pl/Get/MegaUpload
==============================================================================
--- toys/rsget.pl/Get/MegaUpload        (original)
+++ toys/rsget.pl/Get/MegaUpload        Sun Aug  1 18:39:18 2010
@@ -60,6 +60,9 @@
        DELAY( 600, "temporarily unavailable" )
                if /The file you are trying to access is temporarily 
unavailable/;
 
+       ERROR( "not allowed: file larger than 1GB" )
+               if /The file that you're trying to download is larger than 1 
GB/;
+
        if ( /The file you're trying to download is password protected/ ) {
                ERROR( "password required" ) unless exists $-{_opts}->{pass};
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to