From fddfd7b4f0a7d96b7882b28c27807cb3c6688910 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 4 Aug 2022 19:19:45 +1200 Subject: [PATCH] torrentmasters: add genre result --- src/Jackett.Common/Definitions/torrentmasters.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/torrentmasters.yml b/src/Jackett.Common/Definitions/torrentmasters.yml index aa75ff71c..59d781856 100644 --- a/src/Jackett.Common/Definitions/torrentmasters.yml +++ b/src/Jackett.Common/Definitions/torrentmasters.yml @@ -104,10 +104,12 @@ search: inputs: cat: 0 search: "{{ .Keywords }}" + # 0 active, 1 active+idead, 2 dead, 3 free, 4 x2, 5 waiting for seed, 6 my torrents, 7 requested incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}" sort: "{{ .Config.sort }}" type: "{{ .Config.type }}" # does not support imdbid searches + # can support genre, but you need the id. &mufaj[]=14 for Horror rows: selector: table > tbody#linkhatter > tr:nth-child(1) @@ -128,8 +130,11 @@ search: download: selector: a[href^="torrent_adatok.php?id="] attribute: href - description: + hungarian_title: selector: td:nth-child(3) font[color="gray"] + filters: + - name: replace + args: ["| ", ""] date: selector: td:nth-child(5) nobr remove: font @@ -163,6 +168,11 @@ search: case: "font[color=\"#01DF01\"]": 2 "*": 1 + genre: + selector: td:nth-child(3) + remove: a, font + description: + text: "{{ .Result.hungarian_title }}{{ if and .Result.hungarian_title .Result.genre }}
{{ else }}{{ end }}{{ .Result.genre }}" minimumratio: text: 0.5 minimumseedtime: