1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-01 01:15:47 +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 - 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