mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-03 09:38:15 +03:00
better camera name handling
This commit is contained in:
+2
-2
@@ -38,8 +38,8 @@ class EventProcessor(threading.Thread):
|
|||||||
if f in files_in_use or f in self.cached_clips:
|
if f in files_in_use or f in self.cached_clips:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
camera = f.split('-')[0]
|
camera = '-'.join(f.split('-')[:-1])
|
||||||
start_time = datetime.datetime.strptime(f.split('-')[1].split('.')[0], '%Y%m%d%H%M%S')
|
start_time = datetime.datetime.strptime(f.split('-')[-1].split('.')[0], '%Y%m%d%H%M%S')
|
||||||
|
|
||||||
ffprobe_cmd = " ".join([
|
ffprobe_cmd = " ".join([
|
||||||
'ffprobe',
|
'ffprobe',
|
||||||
|
|||||||
Reference in New Issue
Block a user