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:
bd9a8a8
)
- Grabber get() returns pattern only on demand
author
Ralf Ertzinger
<sun@lain.camperquake.de>
Tue, 15 Apr 2008 21:42:46 +0000
(23:42 +0200)
committer
Ralf Ertzinger
<sun@lain.camperquake.de>
Tue, 15 Apr 2008 21:42:46 +0000
(23:42 +0200)
videosite/GrabberBase.pm
patch
|
blob
|
history
diff --git
a/videosite/GrabberBase.pm
b/videosite/GrabberBase.pm
index
ad0b1e7
..
6a1c70a
100644
(file)
--- a/
videosite/GrabberBase.pm
+++ b/
videosite/GrabberBase.pm
@@
-30,7
+30,7
@@
sub get($$) {
$self->debug("Matching %s against %s", $pattern, $url);
if ($url =~ m|$pattern|) {
$self->debug("Match");
- return
$self->_parse($url, $pattern), $pattern
;
+ return
wantarray?($self->_parse($url, $pattern), $pattern):$self->_parse($url, $pattern)
;
}
}