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:
56322f8
)
- Check for existance of hash key before using
author
Ralf Ertzinger
<sun@lain.camperquake.de>
Tue, 15 Apr 2008 19:23:59 +0000
(21:23 +0200)
committer
Ralf Ertzinger
<sun@lain.camperquake.de>
Tue, 15 Apr 2008 19:23:59 +0000
(21:23 +0200)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
701a578
..
f4bac10
100644
(file)
--- a/
videosite/YouTubeGrabber.pm
+++ b/
videosite/YouTubeGrabber.pm
@@
-100,7
+100,7
@@
sub _parse {
$self->debug('URL found: %s', $metadata->{'DLURL'});
}
} elsif ('div' eq $tag->[0]) {
- if (
'errorBox' eq $tag->[1]->{'class'}
) {
+ if (
exists($tag->[1]->{'class'}) and ('errorBox' eq $tag->[1]->{'class'})
) {
$self->error("Could not get video data for youtube %s: %s",
$metadata->{'ID'}, $p->get_trimmed_text());
return undef;