1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 15:57:50 +00:00

Updated Definition format (markdown)

garfield69 2022-08-06 12:07:08 +12:00
parent e08ec3d577
commit 94ef7d0eb4

@ -1403,19 +1403,23 @@ filters:
## validate ## validate
Given a list of words, delimited by any one of `,()/ .` this filter will return a comma delimited list of only the words that Given a list of words, delimited by any one of `, /.)(;[]"|:` this filter will return a comma delimited list of only the words that
are in the args. Useful for removing non-genre types from an open tag list. are in the args. Useful for removing non-genre types from an open tag list.
Note: to preserve a double word (for example `Science Fiction` or `Sci-Fi & Fantasy`) replace the spaces with underscores. These will be auto-restored in results.
Example: Example:
```yaml ```yaml
# remove any tags that are not standard genre types # remove any tags that are not standard genre types
selector: div.tags selector: div.tags
filters: filters:
# input: crime, x264, 1080p, (music), pack, comedy, dd5.1, Hip/Hop - name: re_replace
args: ["(?i)(Science Fiction)", "Science_Fiction"]
# input: crime, x264, 1080p, (music), pack, comedy, Science_Fiction, dd5.1, Hip/Hop
- name: validate - name: validate
args: "Action, Adventure, Crime, Comedy, War" args: "Action, Adventure, Crime, Comedy, Science_Fiction, War"
# result: crime, comedy # result: crime, comedy, scence fiction
``` ```
## dateparse ## dateparse