SVN: toys/rsget.pl/Video/DailyMotion

sparky sparky at pld-linux.org
Sat Jun 5 04:18:49 CEST 2010


Author: sparky
Date: Sat Jun  5 04:18:47 2010
New Revision: 11542

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


Modified: toys/rsget.pl/Video/DailyMotion
==============================================================================
--- toys/rsget.pl/Video/DailyMotion	(original)
+++ toys/rsget.pl/Video/DailyMotion	Sat Jun  5 04:18:47 2010
@@ -11,11 +11,13 @@
 uri: qr{dailymotion\.com/(.*?/)?video/[a-z0-9]+}
 uri: qr{dailymotion\.pl/(.*?/)?video/[a-z0-9]+}
 slots: max
-status: BROKEN 2010-06-04
+status: OK 2010-06-05
 
 start:
 	GET( $-{_uri} );
 
+	ERROR( "file not found" )
+		if m/>Dailymotion – 404 Not Found</;
 	! m{<h1 class="dmco_title"><span class="title" title="(.*?)"};
 	my $name = de_ml( $1 );
 	$name =~ s{/}{_}g;


More information about the pld-cvs-commit mailing list