Skip to content
Permalink
Browse files

torrentz2k: rework cat processing. resolves #8440

  • Loading branch information
garfield69 committed May 21, 2020
1 parent 3ee7b6a commit eabe52e7b6560d59413bc63b7d1d8bc8f3238b8f
Showing with 3 additions and 4 deletions.
  1. +3 −4 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

0 comments on commit eabe52e

Please sign in to comment.
You can’t perform that action at this time.