SVN: toys/rsget.pl/Video/YouTube

sparky sparky at pld-linux.org
Fri Jun 4 20:43:53 CEST 2010


Author: sparky
Date: Fri Jun  4 20:43:53 2010
New Revision: 11525

Modified:
   toys/rsget.pl/Video/YouTube
Log:
- fixed; better "file not found" message


Modified: toys/rsget.pl/Video/YouTube
==============================================================================
--- toys/rsget.pl/Video/YouTube	(original)
+++ toys/rsget.pl/Video/YouTube	Fri Jun  4 20:43:53 2010
@@ -10,7 +10,7 @@
 web: "http://www.youtube.com/"
 uri: qr{youtube\.com/watch\?v=.*}
 slots: max
-status: BROKEN 2010-06-04
+status: OK 2010-06-04
 
 unify:
 	s/#.*//;
@@ -41,8 +41,8 @@
 start:
 	GET( $-{_uri} );
 
-	ERROR( "file cannot be accessed" )
-		if /<div id="" class="yt-alert-content">/;
+	ERROR( "file not found: $1" )
+		if /<div id="" class="yt-alert-content">\s*(Th.*?)\s*</s;
 
 	# try to find best format
 	$-{fmt} = best_format();


More information about the pld-cvs-commit mailing list