SVN: toys/rsget.pl/Video/YouTube

sparky sparky at pld-linux.org
Wed Jul 7 14:11:52 CEST 2010


Author: sparky
Date: Wed Jul  7 14:11:51 2010
New Revision: 11632

Modified:
   toys/rsget.pl/Video/YouTube
Log:
- updated/fixed "file not found" detection


Modified: toys/rsget.pl/Video/YouTube
==============================================================================
--- toys/rsget.pl/Video/YouTube	(original)
+++ toys/rsget.pl/Video/YouTube	Wed Jul  7 14:11:51 2010
@@ -43,7 +43,7 @@
 	GET( $-{_uri} );
 
 	ERROR( "file not found: $1" )
-		if /<div id="" class="yt-alert-content">\s*(Th.*?)\s*</s;
+		if /<div\s[^>]+class="yt-alert-content">\s*(Th.*?)\s*</s;
 	ERROR( "age verification required" )
 		if $-{_referer} =~ m#/verify_age#;
 


More information about the pld-cvs-commit mailing list