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
|
||||
|
||||
fields:
|
||||
_category:
|
||||
category:
|
||||
selector: i
|
||||
attribute: class
|
||||
filters:
|
||||
- name: append
|
||||
args: " list"
|
||||
# extract the second class
|
||||
- name: split
|
||||
args: [" ", 1]
|
||||
# remove fa- prefix
|
||||
- name: replace
|
||||
args: ["fa-", ""]
|
||||
category:
|
||||
# _category can be null so replace with list when that happens
|
||||
text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}list{{ end}}"
|
||||
title:
|
||||
selector: button
|
||||
attribute: title
|
||||
|
|
Loading…
Reference in a new issue