feat(notify): value-first emoji rows
Switch the summary to the layout jblu picked: each counter renders as
"emoji value label", grouped two per line and joined by a middle dot.
Scanned 42 torrents in 12s
🗑️ 7 removed · 👻 4 orphaned
⏭️ 5 ignored · 🐣 3 premature
🛡️ 10 protected · 🌐 20 public
- the value leads, so the numbers are the first thing the eye lands on
- html style now bolds the values instead of the labels
- "Non-protected" reads as "public", matching the non_protected_tag
- use_emoji now defaults to true; false gives the plain variant
- dry runs read "7 would be removed"
This commit is contained in:
1 parent
5d9da0d22b
commit
dfce115fd8
5 files changed
+90
-51
No files matched your search
@@ -137,35 +137,38 @@ Pushover and Apprise share one summary builder, so both report the same
|
||||
numbers. The title states the outcome, the body gives the scanned total, the
|
||||
actionable counters, then the tracker split.
|
||||
|
||||
`format = "plain"` (default) produces a compact, grouped summary:
|
||||
The default summary looks like this:
|
||||
|
||||
```
|
||||
qbit-maid: 7 torrents removed
|
||||
|
||||
Scanned 42 torrents in 12s
|
||||
|
||||
Removed 7 · Orphaned 4
|
||||
Ignored 5 · Premature 3
|
||||
🗑️ 7 removed · 👻 4 orphaned
|
||||
⏭️ 5 ignored · 🐣 3 premature
|
||||
|
||||
Protected 10 · Non-protected 20
|
||||
🛡️ 10 protected · 🌐 20 public
|
||||
```
|
||||
|
||||
Counters are grouped two per line and joined with a middle dot rather than
|
||||
padded into columns. Pushover renders the body in a proportional font, so
|
||||
space-padded columns collapse into a ragged list on a phone — the separator
|
||||
survives any font.
|
||||
Each counter is `emoji value label`, grouped two per line and joined with a
|
||||
middle dot. The value leads so the numbers are the first thing the eye lands
|
||||
on, and the separator survives any font — Pushover renders the body in a
|
||||
proportional font, so space-padded columns collapse into a ragged list on a
|
||||
phone.
|
||||
|
||||
`format = "html"` bolds the labels using Pushover's HTML subset (`html=1` is
|
||||
`format = "html"` bolds the values using Pushover's HTML subset (`html=1` is
|
||||
set automatically). Apprise has no HTML support, so it always receives the
|
||||
plain body.
|
||||
|
||||
Setting `use_emoji = true` prefixes each counter with an emoji marker:
|
||||
`use_emoji` defaults to `true`. Set it to `false` for a plain-text variant:
|
||||
|
||||
```
|
||||
🗑️ Removed 7 · 👻 Orphaned 4
|
||||
⏭️ Ignored 5 · 🐣 Premature 3
|
||||
Scanned 42 torrents in 12s
|
||||
|
||||
🛡️ Protected 10 · 🌐 Non-protected 20
|
||||
7 removed · 4 orphaned
|
||||
5 ignored · 3 premature
|
||||
|
||||
10 protected · 20 public
|
||||
```
|
||||
|
||||
To preview the result without sending a push, render the real
|
||||
|
||||
Reference in new issue
Block a user