SVN: toys/rsget.pl/Video/YouTube
pawelz
pawelz at pld-linux.org
Fri Sep 24 22:14:49 CEST 2010
Author: pawelz
Date: Fri Sep 24 22:14:48 2010
New Revision: 11815
Modified:
toys/rsget.pl/Video/YouTube
Log:
- catch 'This video contains content from .*?, who has blocked it in your
country on copyright grounds\.' error (broken in previous commit).
Modified: toys/rsget.pl/Video/YouTube
==============================================================================
--- toys/rsget.pl/Video/YouTube (original)
+++ toys/rsget.pl/Video/YouTube Fri Sep 24 22:14:48 2010
@@ -43,7 +43,8 @@
GET( $-{_uri} );
ERROR( "file not found: $1" )
- if /<div\s[^>]+class="yt-alert-content">\s*(The.*?)\s*</s;
+ if /<div\s[^>]+class="yt-alert-content">\s*(The.*?)\s*</s
+ or /<div\s[^>]+class="yt-alert-content">\s*(This video contains content from .*?, who has blocked it in your country on copyright grounds\.)\s*</s;
ERROR( "age verification required" )
if $-{_referer} =~ m#/verify_age#;
More information about the pld-cvs-commit
mailing list