Introduce %EVF% Event video filename subst
This commit is contained in:
parent
d02a61e715
commit
e5776b79fa
|
@ -691,6 +691,7 @@ sub substituteTags {
|
|||
$text =~ s/%EC%/$Event->{Cause}/g;
|
||||
$text =~ s/%ED%/$Event->{Notes}/g;
|
||||
$text =~ s/%ET%/$Event->{StartTime}/g;
|
||||
$text =~ s/%EVF%/$$Event{DefaultVideo}/g; # Event video filename
|
||||
$text =~ s/%EL%/$Event->{Length}/g;
|
||||
$text =~ s/%EF%/$Event->{Frames}/g;
|
||||
$text =~ s/%EFA%/$Event->{AlarmFrames}/g;
|
||||
|
@ -1017,8 +1018,7 @@ sub executeCommand {
|
|||
|
||||
my $event_path = $Event->Path();
|
||||
|
||||
my $command = $filter->{AutoExecuteCmd};
|
||||
$command .= " $event_path";
|
||||
my $command = $filter->{AutoExecuteCmd}.' '.$event_path;
|
||||
$command = substituteTags($command, $filter, $Event);
|
||||
|
||||
Info("Executing '$command'");
|
||||
|
|
Loading…
Reference in New Issue