Fixed time period parsing

Also updated link to rclone docs to be more direct to the format docs
This commit is contained in:
Sebastian Goscik
2023-07-29 11:28:54 +01:00
parent 1f2a48f95e
commit 8786f2ceb0
2 changed files with 3 additions and 3 deletions

View File

@@ -47,8 +47,8 @@ def _parse_detection_types(ctx, param, value):
default='7d',
show_default=True,
envvar='RCLONE_RETENTION',
help="How long should event clips be backed up for. Format as per the `--max-age` argument of "
"`rclone` (https://rclone.org/filtering/#max-age-don-t-transfer-any-file-older-than-this)",
help="How long should event clips be backed up for. Format as per the `rclone1 time option format "
"(https://rclone.org/docs/#time-option)",
)
@click.option(
'--rclone-args',

View File

@@ -339,7 +339,7 @@ def parse_rclone_retention(retention: str) -> relativedelta:
days=matches.get("d", 0),
weeks=matches.get("w", 0),
months=matches.get("M", 0),
years=matches.get("Y", 0),
years=matches.get("y", 0),
)