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 88cd3f05d1
commit 6544855898

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') {