git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert to use of a json style config file
[videosite.git]
/
videosite
/
SpikedHumorGrabber.pm
diff --git
a/videosite/SpikedHumorGrabber.pm
b/videosite/SpikedHumorGrabber.pm
index
9925a30
..
5d0f6ae
100644
(file)
--- a/
videosite/SpikedHumorGrabber.pm
+++ b/
videosite/SpikedHumorGrabber.pm
@@
-3,12
+3,11
@@
#
# Grabber for spikedhumor.com
#
# Grabber for spikedhumor.com
-package SpikedHumorGrabber;
+package
videosite::
SpikedHumorGrabber;
-use GrabberBase;
-@ISA = qw(GrabberBase);
+use
videosite::
GrabberBase;
+@ISA = qw(
videosite::
GrabberBase);
-use LWP::Simple qw(!get);
use XML::Simple;
use Data::Dumper;
use XML::Simple;
use Data::Dumper;
@@
-47,7
+46,7
@@
sub _parse {
$metadata->{'DLURL'} = undef;
# Get the XML file containing the video metadata
$metadata->{'DLURL'} = undef;
# Get the XML file containing the video metadata
- unless(defined($content =
LWP::Simple::
get(sprintf('http://www.spikedhumor.com/playxml/%s/data.xml', $2)))) {
+ unless(defined($content =
$self->simple_
get(sprintf('http://www.spikedhumor.com/playxml/%s/data.xml', $2)))) {
$self->error('Could not download XML metadata');
return undef;
}
$self->error('Could not download XML metadata');
return undef;
}