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