mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Get distinct values from scraper (#1338)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -389,7 +389,17 @@ Replaces `2001 to 2003` with `2001-2003`.
|
||||
|
||||
Additionally, there are a number of fixed post-processing fields that are specified at the attribute level (not in `postProcess`) that are performed after the `postProcess` operations:
|
||||
* `concat`: if an xpath matches multiple elements, and `concat` is present, then all of the elements will be concatenated together
|
||||
* `split`: Its the inverse of `concat`. Splits a string to more elements using the separator given. For more info and examples have a look at PR [#579](https://github.com/stashapp/stash/pull/579)
|
||||
* `split`: the inverse of `concat`. Splits a string to more elements using the separator given. For more info and examples have a look at PR [#579](https://github.com/stashapp/stash/pull/579)
|
||||
|
||||
Example:
|
||||
```yaml
|
||||
Tags:
|
||||
Name:
|
||||
selector: //span[@class="list_attributes"]
|
||||
split: ","
|
||||
```
|
||||
Splits a comma separated list of tags located in the span and returns the tags.
|
||||
|
||||
|
||||
For backwards compatibility, `replace`, `subscraper` and `parseDate` are also allowed as keys for the attribute.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user