SVN: toys/rsget.pl/Video/XHamster
sparky
sparky at pld-linux.org
Fri Jun 4 23:17:58 CEST 2010
Author: sparky
Date: Fri Jun 4 23:17:57 2010
New Revision: 11528
Modified:
toys/rsget.pl/Video/XHamster
Log:
- added "file not found" detection, other than that there were no problems
Modified: toys/rsget.pl/Video/XHamster
==============================================================================
--- toys/rsget.pl/Video/XHamster (original)
+++ toys/rsget.pl/Video/XHamster Fri Jun 4 23:17:57 2010
@@ -10,11 +10,14 @@
web: "http://xhamster.com/"
uri: qr{xhamster\.com/movies/\d+/}
slots: max
-status: BROKEN 2010-06-04
+status: OK 2010-06-04
start:
GET( $-{_uri} );
+ ERROR( "file not found: $1" )
+ if m#<span class="error">(.*?)</span>#;
+
! m#flashvars.*?'srv': '(.*?)',\s*'file': '(.*?)',#s;
my $srv = $1;
my $file = $2;
More information about the pld-cvs-commit
mailing list