git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d50f58
)
error on removed video
author
Christian Garbs
<mitch@cgarbs.de>
Wed, 16 Jan 2008 21:36:31 +0000
(22:36 +0100)
committer
Ralf Ertzinger
<sun@lain.camperquake.de>
Fri, 18 Jan 2008 18:49:10 +0000
(19:49 +0100)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
c5ee0f3
..
2cb55c1
100644
(file)
--- a/
videosite/YouTubeGrabber.pm
+++ b/
videosite/YouTubeGrabber.pm
@@
-57,6
+57,11
@@
sub _parse {
return undef;
}
+ if ($content =~ /This video has been removed due to terms of use violation/) {
+ $self->error('Video has been removed');
+ return undef;
+ }
+
$p->handler(start => \@accum, "tagname, attr");
$p->handler(text => \@text, "text");
$p->report_tags(qw(meta script));