SVN: toys/rsget.pl/Get: HotFile RapidShare RapidShark StorageTo TurboUpload

sparky sparky at pld-linux.org
Fri Sep 11 19:07:32 CEST 2009


Author: sparky
Date: Fri Sep 11 19:07:31 2009
New Revision: 10571

Modified:
   toys/rsget.pl/Get/HotFile
   toys/rsget.pl/Get/RapidShare
   toys/rsget.pl/Get/RapidShark
   toys/rsget.pl/Get/StorageTo
   toys/rsget.pl/Get/TurboUpload
Log:
- approximate file size is asize


Modified: toys/rsget.pl/Get/HotFile
==============================================================================
--- toys/rsget.pl/Get/HotFile	(original)
+++ toys/rsget.pl/Get/HotFile	Fri Sep 11 19:07:31 2009
@@ -12,7 +12,7 @@
 	ERROR( "file not found" ) if /This file is either removed/;
 
 	! m{<table class="downloading"><tr><td>.*?<b>(.*?)</b> <span class="size">\| ([\d\.]+[KM]b)</span></td></tr></table>};
-	INFO( name => $1, size => $2 );
+	INFO( name => $1, asize => $2 );
 
 	MULTI() if /You are currently downloading/;
 

Modified: toys/rsget.pl/Get/RapidShare
==============================================================================
--- toys/rsget.pl/Get/RapidShare	(original)
+++ toys/rsget.pl/Get/RapidShare	Fri Sep 11 19:07:31 2009
@@ -11,9 +11,10 @@
 	ERROR( "file not found" )
 		if /The file could not be found\.  Please check the download link/;
 	ERROR( "file removed" ) if /file has been removed from the server/;
+	ERROR( "file removed" ) if /download of this file is currently not possible|This limit is reached/;
 
 	m#<p class="downloadlink">.*/(.+?) <font style=".*?">\| (\d+ KB)</font></p>#;
-	INFO( name => $1, size => $2, kilo => 1000 );
+	INFO( name => $1, asize => $2, kilo => 1000 );
 
 	RESTART( $1 * 60, "servers overloaded" )
 		if /Unfortunately you will have to wait ([0-9]+) minutes,/;

Modified: toys/rsget.pl/Get/RapidShark
==============================================================================
--- toys/rsget.pl/Get/RapidShark	(original)
+++ toys/rsget.pl/Get/RapidShark	Fri Sep 11 19:07:31 2009
@@ -14,7 +14,7 @@
 		if m{<font class="err">No such file};
 
 	m{<font style="font-size:12px;">Chcesz pobrac plik <font color="red">.*/(.*?)</font> \(([\d\.]+ ([MK])?b)\)</font>};
-	INFO( name => $1, size => $2 );
+	INFO( name => $1, asize => $2 );
 
 	! s/^.*?<Form method="POST" action=''>//s;
 	! s/(.*?)<\/Form>.*$/$1/s;

Modified: toys/rsget.pl/Get/StorageTo
==============================================================================
--- toys/rsget.pl/Get/StorageTo	(original)
+++ toys/rsget.pl/Get/StorageTo	Fri Sep 11 19:07:31 2009
@@ -8,8 +8,9 @@
 start:
 	GET( $-{_uri} );
 
+	ERROR( "file not found" ) if /File not found\./;
 	! m{<span class="orange">.*?:</span> (.*?) <span class="light">\(([\d\.]+ [KM]B)\)</span>};
-	INFO( name => $1, size => $2 );
+	INFO( name => $1, asize => $2 );
 
 	! /onclick='javascript:startcountdown\("(.*?)", "(.*?)"\);'/;
 	GET( "/getlink/$2/" );

Modified: toys/rsget.pl/Get/TurboUpload
==============================================================================
--- toys/rsget.pl/Get/TurboUpload	(original)
+++ toys/rsget.pl/Get/TurboUpload	Fri Sep 11 19:07:31 2009
@@ -10,7 +10,7 @@
 
 	ERROR( "file not found" ) if /File Not Found/;
 	! m{<h2>\S* \S* (.*?)</h2>\s*<font .*?</font> \((\d+\.\d+ [MK]b)\)</font>}s;
-	INFO( name => $1, size => $2 );
+	INFO( name => $1, asize => $2 );
 
 	! s/^.*?<Form method="POST" action=''>//s;
 	! s/(.*?)<\/Form>.*$/$1/s;


More information about the pld-cvs-commit mailing list