Sebastian Goscik
f4c3c68f0d
Fixed download failure counting
...
previously it would only count as a failure if the download "succeeded" but was None
2023-04-29 09:48:46 +01:00
Sebastian Goscik
9def99ff97
linter fixes
2023-03-24 15:06:10 +00:00
Sebastian Goscik
cec323f803
Make download failure assertion more specific
2023-03-24 12:18:09 +00:00
Sebastian Goscik
89fe672693
Add ability to ignore events that keep failing
2023-03-24 12:17:44 +00:00
Sebastian Goscik
48f743bc8e
flake8 & mypy fixes
2023-03-08 00:03:26 +00:00
Sebastian Goscik
818f2eb5b3
Reclassify log messages
2023-03-07 00:16:19 +00:00
Sebastian Goscik
dfdc85001c
color logging no longer uses global variable
2023-03-07 00:16:19 +00:00
Sebastian Goscik
73022fddf1
Simplify exception logging
2023-02-25 20:51:18 +00:00
Sebastian Goscik
0c34294b7e
clear current event after upload/download
2022-12-10 06:44:56 +00:00
Sebastian Goscik
0978798078
Fix uploading files not being accounted for when checking for missing events
2022-12-09 11:12:08 +00:00
Sebastian Goscik
58eb1fd8a7
Added event ID to uploader/downloader logging
...
Also fixed issue where logging outside of unifi_protect_backup was not adding colors
2022-12-08 12:04:36 +00:00
Sebastian Goscik
bba96e9d86
Make video download buffer size configurable
2022-12-08 00:15:11 +00:00
Sebastian Goscik
4e10e0f10e
Use run_command in downloader and uploader
2022-12-05 14:03:59 +00:00
Sebastian Goscik
471ecb0662
Major Restructure
...
- Each task is now its own class
- Added a database to track backed up events and their destinations
- Added task to check for and backup missed events
2022-12-03 21:48:44 +00:00