mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_rssFeed: namespace fix for XML::simple
git-svn-id: https://svn.fhem.de/fhem/trunk@11510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9c45cdb11b
commit
e8cd3fa6bd
@ -20,7 +20,7 @@ use Encode qw(encode);
|
||||
use IO::Uncompress::Gunzip qw(gunzip $GunzipError );
|
||||
|
||||
|
||||
use XML::Simple;
|
||||
use XML::Simple qw(:strict);
|
||||
|
||||
my $modulename='rssFeed'; #Module-Name = TYPE
|
||||
|
||||
@ -494,7 +494,7 @@ rssFeed_update(@)
|
||||
$xml = new XML::Simple;
|
||||
|
||||
rssFeed_Log3 $name,5,'Trying to convert xml to array...';
|
||||
eval {$nachrichten=$xml->XMLin($response, ForceArray => ['item']);};
|
||||
eval {$nachrichten=$xml->XMLin($response,KeyAttr => {}, ForceArray => ['item']);};
|
||||
if($@) {
|
||||
rssFeed_Log3 $name,3,"ERROR can't convert feed response" if($@);
|
||||
rssFeed_Log3 $name,4,"$@";
|
||||
|
Loading…
x
Reference in New Issue
Block a user