mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
default save_clips objects
This commit is contained in:
parent
47e256f03d
commit
62728ef7fb
@ -459,7 +459,7 @@ class CameraSaveClipsConfig():
|
||||
def __init__(self, global_config, config):
|
||||
self._enabled = config['enabled']
|
||||
self._pre_capture = config['pre_capture']
|
||||
self._objects = config.get('objects')
|
||||
self._objects = config.get('objects', global_config['objects']['track'])
|
||||
self._retain = SaveClipsRetainConfig(global_config['save_clips']['retain'], config['retain'])
|
||||
|
||||
@property
|
||||
|
@ -170,8 +170,6 @@ class EventProcessor(threading.Thread):
|
||||
continue
|
||||
|
||||
# if specific objects are listed for this camera, only save clips for them
|
||||
# TODO: default to all tracked objects rather than checking for None
|
||||
if save_clips_config.objects:
|
||||
if not event_data['label'] in save_clips_config.objects:
|
||||
if event_type == 'end':
|
||||
self.event_processed_queue.put((event_data['id'], camera))
|
||||
|
Loading…
Reference in New Issue
Block a user