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();
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to