SVN: toys/rsget.pl/Video/YouTube
    sparky 
    sparky at pld-linux.org
       
    Tue Jun 29 12:47:03 CEST 2010
    
    
  
Author: sparky
Date: Tue Jun 29 12:47:02 2010
New Revision: 11624
Modified:
   toys/rsget.pl/Video/YouTube
Log:
- return error on 18+ videos (login required)
Modified: toys/rsget.pl/Video/YouTube
==============================================================================
--- toys/rsget.pl/Video/YouTube	(original)
+++ toys/rsget.pl/Video/YouTube	Tue Jun 29 12:47:02 2010
@@ -38,11 +38,14 @@
 
 		return undef;
 	}
+
 start:
 	GET( $-{_uri} );
 
 	ERROR( "file not found: $1" )
 		if /<div id="" class="yt-alert-content">\s*(Th.*?)\s*</s;
+	ERROR( "age verification required" )
+		if $-{_referer} =~ m#/verify_age#;
 
 	# try to find best format
 	$-{fmt} = best_format();
    
    
More information about the pld-cvs-commit
mailing list