SVN: toys/rsget.pl/Get/MegaUpload
pawelz
pawelz at pld-linux.org
Sun Aug 1 18:39:19 CEST 2010
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};
More information about the pld-cvs-commit
mailing list