feat: Implement removing field if field is an empty string after transforming

This commit is contained in:
FoxxMD 2024-07-26 09:30:58 -04:00
parent fb3886b981
commit 1d276186f8
3 changed files with 89 additions and 22 deletions

View file

@ -147,6 +147,12 @@ Putting it all together:
]
```
:::note
If the value of the field (title, an artist, album) is an empty string after transforming then the field is **removed.**
:::
:::tip
Modifications can also be applied to **all Sources** or **all Clients** when using the [AIO Config](./configuration.mdx?configType=aio#configuration-types) `config.json` by setting `playTransform` in `sourceDefaults` or `clientDefaults`:
@ -289,3 +295,26 @@ Removes the phrase `(Album Version)` from the Title of a Play
}
```
</details>
### Remove "Various Artists" albums in all new Plays
<details>
<summary>Example</summary>
```json5 title="config.json"
{
"sourceDefaults": {
"playTransform": {
"preCompare": {
"album": [
{
"search": "Various Artists",
"replace": ""
}
]
}
}
}
}
```
</details>