Capture 'temporary' status now stored as tag

This commit is contained in:
Joel Collins 2019-09-19 14:23:12 +01:00
parent 8b9ecbe2c7
commit b0be4fc26a

View file

@ -288,6 +288,9 @@ class BaseCamera(metaclass=ABCMeta):
# Create capture object # Create capture object
output = CaptureObject(filepath=filepath) output = CaptureObject(filepath=filepath)
# Insert a temporary tag if temporary
if temporary:
output.put_tags(['temporary'])
# Update capture list # Update capture list
self.images.append(output) self.images.append(output)
@ -328,6 +331,9 @@ class BaseCamera(metaclass=ABCMeta):
# Create capture object # Create capture object
output = CaptureObject(filepath=filepath) output = CaptureObject(filepath=filepath)
# Insert a temporary tag if temporary
if temporary:
output.put_tags(['temporary'])
# Update capture list # Update capture list
self.videos.append(output) self.videos.append(output)