Add ability to skip missing events at launch

This commit is contained in:
Sebastian Goscik
2023-03-24 01:02:58 +00:00
parent 0d3395b74a
commit 782d126ae5
4 changed files with 103 additions and 59 deletions

View File

@@ -151,6 +151,17 @@ If no tags are specified, it defaults to ERROR
More details about supported platforms can be found here: https://github.com/caronc/apprise""",
)
@click.option(
'--skip-missing',
default=False,
show_default=True,
is_flag=True,
envvar='SKIP_MISSING',
help="""\b
If set, events which are 'missing' at the start will be ignored.
Subsequent missing events will be downloaded (e.g. a missed event)
""",
)
def main(**kwargs):
"""A Python based tool for backing up Unifi Protect event clips as they occur."""
event_listener = UnifiProtectBackup(**kwargs)