summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Crawl/Bot/Role/RSS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crawl/Bot/Role/RSS.pm b/lib/Crawl/Bot/Role/RSS.pm
index 7a0177e..c8db95a 100644
--- a/lib/Crawl/Bot/Role/RSS.pm
+++ b/lib/Crawl/Bot/Role/RSS.pm
@@ -11,7 +11,7 @@ requires 'rss_feed';
sub current_items {
my $self = shift;
my $rss = try { XML::RAI->parse_uri($self->rss_feed) } catch { warn $_ };
- return unless ref($rss) eq 'ARRAY';
+ return unless ref($rss) eq 'XML::RAI';
# after the XML::RAI object goes out of scope, the item objects become
# worthless. how dumb. capture the relevant data in some hashrefs instead.
return map {