acolomba / blackvuesync

Hands-off synchronization of recordings from a BlackVue dashcam with a local directory over a LAN. Standalone script or docker image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: newest to oldest priority

Robpol86 opened this issue · comments

Currently time downloads oldest to newest. It would be nice to have an additional priority option for reverse chronological order, newest to oldest.

Use case is I have a Raspberry Pi in my car that backs up footage every minute in case someone breaks in and steals the camera.

Yes, I can do that.

In the meantime, if you don't want to wait, you ought to be able change this line in the Python script from:

    recordings.sort(key=sort_key)

to:

    recordings.sort(key=sort_key, reverse=True)

Then use the default priority.

added a --priority rdate option that downloads from newest to oldest (and fixed docs, the original option was date, not time)