mirror of
https://github.com/Jackett/Jackett
synced 2025-01-22 07:29:19 +00:00
Updated Definition format (markdown)
parent
7cd08e1b38
commit
e91e7be5f7
1 changed files with 23 additions and 2 deletions
|
@ -642,9 +642,9 @@ search:
|
|||
fields:
|
||||
# All the regular filters are available as described elsewhere in the Wiki. I've included some examples.
|
||||
#
|
||||
# If you have not defined an attribute in the response block above, then all the fields are extracted
|
||||
# If you have not defined an attribute in the rows block above, then all the fields are extracted
|
||||
# from the rows set.
|
||||
# If you have defined an attribute in the response block above, then a prefix of .. means that this field
|
||||
# If you have defined an attribute in the rows block above, then a prefix of .. means that this field
|
||||
# is extracted directly from the rows set, and without a .. prefix you are indicating that the field is
|
||||
# to be extracted from the attribute subset.
|
||||
#
|
||||
|
@ -778,6 +778,27 @@ search:
|
|||
# 7 day (as seconds = 7 x 24 x 60 x 60)
|
||||
text: 604800
|
||||
```
|
||||
The use of `:has()`, `:not()` and `:contains()` are supported by the rows selector and fields selectors.
|
||||
Examples:
|
||||
```yaml
|
||||
rows:
|
||||
selector: data:has(attributes.size):has(attributes.name:contains(1080)):has(attributes.poster:contains(.jpg)):not(attributes.fake_att):not(attributes.uploader:contains(DarkSwan2001))
|
||||
fields:
|
||||
title_dts:
|
||||
selector: name:contains(DTS)
|
||||
optional: true
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["DTS", "DTSSS"]
|
||||
title_notdts:
|
||||
selector: name:not(:contains(DTS))
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_dts }}{{ .Result.title_dts }}{{ else }}{{ .Result.title_notdts }}{{ end }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["\\[", " "]
|
||||
```
|
||||
### Search XML
|
||||
|
||||
This is similar to the JSON method except you code type xml:
|
||||
|
|
Loading…
Reference in a new issue