Add Tautulli database corruption notification trigger

This commit is contained in:
JonnyWong16 2020-04-10 15:11:32 -07:00
parent a4eda99a4a
commit 33d860384c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 27 additions and 0 deletions

View file

@ -120,6 +120,7 @@ def make_backup(cleanup=False, scheduler=False):
corrupt = ''
if not integrity:
corrupt = '.corrupt'
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_plexpydbcorrupt'})
if scheduler:
backup_file = 'tautulli.backup-{}{}.sched.db'.format(arrow.now().format('YYYYMMDDHHmmss'), corrupt)