mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
70_ENIGMA2.pm: improved filter for recordings name and servicename
git-svn-id: https://svn.fhem.de/fhem/trunk@12827 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c8d8dce11e
commit
b88ef0ba80
@ -2035,12 +2035,14 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
||||
$readingname = "recordings" . $ri . "_servicename";
|
||||
readingsBulkUpdateIfChanged( $hash, $readingname, $2 )
|
||||
if ( $recordings{$ri}{servicename} =~
|
||||
/^(\[[\w=]+\])?([ \w\(\)]+)(\[[\w=\/]+\])?$/ );
|
||||
/^(\s*[\[\(\{].*[\]\)\}]\s*)?([\s\w\(\)_-]+)(\s*[\[\(\{].*[\]\)\}]\s*)?$/
|
||||
);
|
||||
|
||||
$readingname = "recordings" . $ri . "_name";
|
||||
readingsBulkUpdateIfChanged( $hash, $readingname, $2 )
|
||||
if ( $recordings{$ri}{name} =~
|
||||
/^(\[[\w=]+\])?([ \w\(\)]+)(\[[\w=\/]+\])?$/ );
|
||||
/^(\s*[\[\(\{].*[\]\)\}]\s*)?([\s\w\(\)_-]+)(\s*[\[\(\{].*[\]\)\}]\s*)?$/
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user