Add Discord webhook refresh notifications
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Small local web UI for a system-wide `ani-cli` install.
|
||||
|
||||
Current version: `0.32.5`
|
||||
Current version: `0.33.0`
|
||||
|
||||
## Project Layout
|
||||
|
||||
@@ -121,6 +121,7 @@ Container notes:
|
||||
- Track shows on `/watchlist`.
|
||||
- Refresh watchlist episode counts in the background.
|
||||
- Schedule periodic watchlist refresh jobs.
|
||||
- Send Discord webhook notifications for refresh discoveries and failures.
|
||||
- Cache watchlist thumbnails locally.
|
||||
- Sync successful downloads back into the watchlist.
|
||||
- Keep queue and watchlist data in SQLite under `.ani-cli-web/`.
|
||||
@@ -156,9 +157,18 @@ Use it to set:
|
||||
4. Scheduled watchlist refresh enable or disable.
|
||||
5. Scheduled refresh period in minutes.
|
||||
6. Delay between shows during `Refresh All`.
|
||||
7. Discord webhook URL.
|
||||
8. Discord notification events plus a test action.
|
||||
|
||||
Saved settings are written to `.ani-cli-web/config.json`.
|
||||
|
||||
Discord notification events:
|
||||
|
||||
- Refresh finished and found new episodes.
|
||||
- Refresh failed or finished with per-show refresh errors.
|
||||
- Refresh interrupted by restart or shutdown.
|
||||
- Unexpected runtime errors.
|
||||
|
||||
### Watchlist
|
||||
|
||||
Path: `/watchlist`
|
||||
@@ -215,6 +225,7 @@ Refresh behavior:
|
||||
- Duplicate refresh queueing is avoided.
|
||||
- Scheduled refresh runs log start, stop, success, and failure to stdout.
|
||||
- `Refresh All` works one show at a time with a configurable delay.
|
||||
- When a Discord webhook is configured, new-episode refresh results include one notification card per anime with sub and dub counts and a cached thumbnail attachment when available.
|
||||
|
||||
## Access Guard
|
||||
|
||||
@@ -295,6 +306,8 @@ Environment variables:
|
||||
|
||||
Saved config fields include:
|
||||
|
||||
- `discord_webhook_url`
|
||||
- `discord_webhook_events`
|
||||
- `watchlist_auto_refresh_enabled`
|
||||
- `watchlist_auto_refresh_minutes`
|
||||
- `watchlist_refresh_delay_seconds`
|
||||
|
||||
Reference in New Issue
Block a user