SVN: toys/rsget.pl/Get/FileSonic

sparky sparky at pld-linux.org
Fri Oct 15 23:59:19 CEST 2010


Author: sparky
Date: Fri Oct 15 23:59:18 2010
New Revision: 11847

Modified:
   toys/rsget.pl/Get/FileSonic
Log:
- updated "file not found" detection


Modified: toys/rsget.pl/Get/FileSonic
==============================================================================
--- toys/rsget.pl/Get/FileSonic	(original)
+++ toys/rsget.pl/Get/FileSonic	Fri Oct 15 23:59:18 2010
@@ -21,7 +21,8 @@
 	GET( $-{_uri} );
 
 	ERROR( "file not found: $1" )
-		if m#<div class="section CL1">.*?<p>\s*(.*?)\s*</p>#s;
+		if m#<div class="section CL1">.*?<p>\s*(.*?)\s*</p>#s
+		or m#<div id="downloadFileInfo" class="section CL.">.*?<p>\s*(.*?)\s*</p>#s;
 
 	! m#<p class="fileInfo filename">.*?<strong>(.*?)</strong>#;
 	( my $fn = $1 ) =~ s/\.\.\./\0/;


More information about the pld-cvs-commit mailing list