From 3a1f1c946b796026d333aca22c1f56856a6f5992 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 26 Jul 2020 07:50:42 -0500 Subject: [PATCH] better camera name handling --- frigate/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/events.py b/frigate/events.py index 2ffc09379..19f8816ee 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -38,8 +38,8 @@ class EventProcessor(threading.Thread): if f in files_in_use or f in self.cached_clips: continue - camera = f.split('-')[0] - start_time = datetime.datetime.strptime(f.split('-')[1].split('.')[0], '%Y%m%d%H%M%S') + camera = '-'.join(f.split('-')[:-1]) + start_time = datetime.datetime.strptime(f.split('-')[-1].split('.')[0], '%Y%m%d%H%M%S') ffprobe_cmd = " ".join([ 'ffprobe',