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/fhem@11510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b416e6aa5d
commit
15a334a25e
@ -20,7 +20,7 @@ use Encode qw(encode);
|
|||||||
use IO::Uncompress::Gunzip qw(gunzip $GunzipError );
|
use IO::Uncompress::Gunzip qw(gunzip $GunzipError );
|
||||||
|
|
||||||
|
|
||||||
use XML::Simple;
|
use XML::Simple qw(:strict);
|
||||||
|
|
||||||
my $modulename='rssFeed'; #Module-Name = TYPE
|
my $modulename='rssFeed'; #Module-Name = TYPE
|
||||||
|
|
||||||
@ -494,7 +494,7 @@ rssFeed_update(@)
|
|||||||
$xml = new XML::Simple;
|
$xml = new XML::Simple;
|
||||||
|
|
||||||
rssFeed_Log3 $name,5,'Trying to convert xml to array...';
|
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($@) {
|
if($@) {
|
||||||
rssFeed_Log3 $name,3,"ERROR can't convert feed response" if($@);
|
rssFeed_Log3 $name,3,"ERROR can't convert feed response" if($@);
|
||||||
rssFeed_Log3 $name,4,"$@";
|
rssFeed_Log3 $name,4,"$@";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user