1
0
Fork 0
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:
Garfield69 2020-05-22 10:19:55 +12:00
parent 3ee7b6a2da
commit eabe52e7b6

View file

@ -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