|
|
|
@ -9,6 +9,7 @@ use Getopt::Long;
|
|
|
|
|
use YAML::Any qw(LoadFile); |
|
|
|
|
use LWP::UserAgent; |
|
|
|
|
use XML::Feed; |
|
|
|
|
use HTML::Entities; |
|
|
|
|
|
|
|
|
|
##### variables |
|
|
|
|
our $VERSION = '0.02'; |
|
|
|
@ -111,7 +112,8 @@ sub process_feed {
|
|
|
|
|
return $urls; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
my $feed = XML::Feed->parse(\$resp->decoded_content); |
|
|
|
|
my $data = decode_entities($resp->decoded_content); |
|
|
|
|
my $feed = XML::Feed->parse(\$data); |
|
|
|
|
unless ($feed) { |
|
|
|
|
_log(error => "Can't parse feed: " . XML::Feed->errstr); |
|
|
|
|
return $urls; |
|
|
|
|