torrentz2k: cat can be missing. resolves #8440

This commit is contained in:
Garfield69 2020-05-14 08:54:33 +12:00
parent ff0e9546d9
commit e7027774a4
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,7 @@ search:
- name: andmatch
fields:
category:
_category:
selector: i
attribute: class
filters:
@ -65,6 +65,9 @@ search:
# 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