mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-05-03 06:01:43 +00:00
docs: Add scrobble modification logging docs
This commit is contained in:
parent
54fe61c51c
commit
cb2c7276dd
1 changed files with 20 additions and 0 deletions
|
|
@ -359,6 +359,26 @@ Top-level hooks can also be an array of hooks. This makes creating multiple scen
|
|||
|
||||
</details>
|
||||
|
||||
### Logging
|
||||
|
||||
MS can log the output of hook transformations if/when they occur. In the `playTransform` object of a Source/Client config use `log`:
|
||||
|
||||
* `"log": true` => Output original play + final transformed output of last hook in the array
|
||||
* `"log": "all"` => Output original play + final transformed output of **each** hook in the array
|
||||
|
||||
```json5
|
||||
{
|
||||
"name": "myThing",
|
||||
"data": {/*...*/},
|
||||
"options": {
|
||||
"playTransform": {
|
||||
"preCompare": {/*...*/},
|
||||
"log": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
### Remove phrase from Title in all new Plays
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue