SVN: toys/rsget.pl/Video/LiveLeak

sparky sparky at pld-linux.org
Tue Jul 13 03:28:14 CEST 2010


Author: sparky
Date: Tue Jul 13 03:28:13 2010
New Revision: 11660

Modified:
   toys/rsget.pl/Video/LiveLeak
Log:
- added file not found detection
- status: OK


Modified: toys/rsget.pl/Video/LiveLeak
==============================================================================
--- toys/rsget.pl/Video/LiveLeak	(original)
+++ toys/rsget.pl/Video/LiveLeak	Tue Jul 13 03:28:13 2010
@@ -10,11 +10,14 @@
 web: "http://liveleak.com/"
 uri: qr{liveleak\.com/view\?i=}
 slots: max
-status: OK 2010-06-04
+status: OK 2010-07-13
 
 start:
 	GET( $-{_uri} );
 
+	ERROR( "file not found: $1" )
+		if m#<h4><font color="FF0000">(.*?)<#;
+
 	! m{<h4 id="s_hd">(.*?)</h4>};
 	$-{fname} = de_ml( $1 );
 	$-{fname} =~ s{/}{_}g;


More information about the pld-cvs-commit mailing list