mirror of
https://github.com/Jackett/Jackett
synced 2025-02-28 17:05:40 +00:00
torrentz2k: rework cat processing. resolves #8440
This commit is contained in:
parent
3ee7b6a2da
commit
eabe52e7b6
1 changed files with 3 additions and 4 deletions
|
@ -55,19 +55,18 @@ search:
|
||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
_category:
|
category:
|
||||||
selector: i
|
selector: i
|
||||||
attribute: class
|
attribute: class
|
||||||
filters:
|
filters:
|
||||||
|
- name: append
|
||||||
|
args: " list"
|
||||||
# extract the second class
|
# extract the second class
|
||||||
- name: split
|
- name: split
|
||||||
args: [" ", 1]
|
args: [" ", 1]
|
||||||
# remove fa- prefix
|
# remove fa- prefix
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["fa-", ""]
|
args: ["fa-", ""]
|
||||||
category:
|
|
||||||
# _category can be null so replace with list when that happens
|
|
||||||
text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}list{{ end}}"
|
|
||||||
title:
|
title:
|
||||||
selector: button
|
selector: button
|
||||||
attribute: title
|
attribute: title
|
||||||
|
|
Loading…
Reference in a new issue