mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	only save a clip if its not a false positive
This commit is contained in:
		
							parent
							
								
									5db7b242aa
								
							
						
					
					
						commit
						1f81cba706
					
				| @ -151,7 +151,7 @@ class EventProcessor(threading.Thread): | ||||
|                 self.events_in_process[event_data['id']] = event_data | ||||
| 
 | ||||
|             if event_type == 'end': | ||||
|                 if self.config[camera].get('save_clips', {}).get('enabled', False) and len(self.cached_clips) > 0: | ||||
|                 if self.config[camera].get('save_clips', {}).get('enabled', False) and len(self.cached_clips) > 0 and not event_data['false_positive']: | ||||
|                     self.create_clip(camera, event_data, self.config[camera].get('save_clips', {}).get('pre_capture', 30)) | ||||
|                 del self.events_in_process[event_data['id']] | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user