From eabe52e7b6560d59413bc63b7d1d8bc8f3238b8f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 22 May 2020 10:19:55 +1200 Subject: [PATCH] torrentz2k: rework cat processing. resolves #8440 --- src/Jackett.Common/Definitions/torrentz2k.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentz2k.yml b/src/Jackett.Common/Definitions/torrentz2k.yml index 145ecade7..64b751d25 100644 --- a/src/Jackett.Common/Definitions/torrentz2k.yml +++ b/src/Jackett.Common/Definitions/torrentz2k.yml @@ -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