mirror of https://github.com/Jackett/Jackett
torrentz2k: cat can be missing. resolves #8440
This commit is contained in:
parent
ff0e9546d9
commit
e7027774a4
|
@ -55,7 +55,7 @@ search:
|
||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
_category:
|
||||||
selector: i
|
selector: i
|
||||||
attribute: class
|
attribute: class
|
||||||
filters:
|
filters:
|
||||||
|
@ -65,6 +65,9 @@ search:
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in New Issue