2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

70_KODI: improved handling of whitespaces in jsonraw message

git-svn-id: https://svn.fhem.de/fhem/trunk@18820 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs 2019-03-07 19:39:39 +00:00
parent d903249963
commit 232b6c7345

View File

@ -1013,7 +1013,8 @@ sub KODI_Set($@)
return KODI_Call($hash,{'method' => 'Input.ExecuteAction', 'params' => { 'action' => $action}},0);
}
elsif($cmd eq 'jsonraw') {
my $action = join("",@args);
# note: multiple whitespaces in the string will be condenced to singel whitespace
my $action = join(" ",@args);
return KODI_Call_raw($hash,$action,0);
}
elsif($cmd eq 'showcodec') {