|
@@ -166,14 +166,16 @@ class EventProcessor(threading.Thread):
|
|
|
|
|
|
# if save clips is not enabled for this camera, just continue
|
|
# if save clips is not enabled for this camera, just continue
|
|
if not save_clips_config.enabled:
|
|
if not save_clips_config.enabled:
|
|
- self.event_processed_queue.put((event_data['id'], camera))
|
|
|
|
|
|
+ if event_type == 'end':
|
|
|
|
+ self.event_processed_queue.put((event_data['id'], camera))
|
|
continue
|
|
continue
|
|
|
|
|
|
# if specific objects are listed for this camera, only save clips for them
|
|
# if specific objects are listed for this camera, only save clips for them
|
|
# TODO: default to all tracked objects rather than checking for None
|
|
# TODO: default to all tracked objects rather than checking for None
|
|
if save_clips_config.objects:
|
|
if save_clips_config.objects:
|
|
if not event_data['label'] in save_clips_config.objects:
|
|
if not event_data['label'] in save_clips_config.objects:
|
|
- self.event_processed_queue.put((event_data['id'], camera))
|
|
|
|
|
|
+ if event_type == 'end':
|
|
|
|
+ self.event_processed_queue.put((event_data['id'], camera))
|
|
continue
|
|
continue
|
|
|
|
|
|
if event_type == 'start':
|
|
if event_type == 'start':
|