mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
75_MSG: fix for Sonos Title names in message body text
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13281 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
535e4e40aa
commit
57914c24f3
@ -1811,15 +1811,15 @@ m/^(absent|disappeared|unauthorized|disconnected|unreachable)$/i
|
||||
# correct message format
|
||||
#
|
||||
|
||||
# Remove Sonos Speak commands
|
||||
$loopMsg =~ s/(\s*\|\w+\|\s*)/\\n\\n/gi
|
||||
if ( $type[$i] ne "audio" );
|
||||
|
||||
# Replace new line with HTML break
|
||||
# for e-mails
|
||||
$loopMsg =~ s/\n/<br \/>\n/gi
|
||||
if ( $type[$i] eq "mail" );
|
||||
|
||||
# Remove Sonos Speak commands
|
||||
$loopMsg =~ s/((|(\d+)| )\|\w+\|( |))/\n\n/gi
|
||||
if ( $type[$i] ne "audio" );
|
||||
|
||||
# use command from device, global or internal default
|
||||
my $defCmd = "";
|
||||
$defCmd =
|
||||
|
Loading…
x
Reference in New Issue
Block a user