mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 20:01:38 +00:00
Add: backup completion notification
This commit is contained in:
parent
2aabca906e
commit
b1adafedd2
4 changed files with 40 additions and 3 deletions
|
|
@ -27,6 +27,23 @@ module.exports.notificationData = {
|
|||
episodeDescription: 'Some description of the podcast episode.'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'onBackupCompleted',
|
||||
requiresLibrary: false,
|
||||
description: 'Triggered when a backup is completed',
|
||||
variables: ['completionTime', 'backupPath', 'backupSize', 'backupCount', 'removedOldest'],
|
||||
defaults: {
|
||||
title: 'Backup Completed',
|
||||
body: 'Backup has been completed successfully.\n\nPath: {{backupPath}}\nSize: {{backupSize}}\nCount: {{backupCount}}\nRemoved Oldest: {{removedOldest}}'
|
||||
},
|
||||
testData: {
|
||||
completionTime: '12:00 AM',
|
||||
backupPath: 'path/to/backup',
|
||||
backupSize: '1.23 MB',
|
||||
backupCount: '1',
|
||||
removedOldest: 'false'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'onTest',
|
||||
requiresLibrary: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue