From b9c89c2383f1185359c87e730c12aa8c9cfae3b9 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 22 Aug 2022 20:09:39 +1200 Subject: [PATCH] extremlymtorrents: add genre results --- .../Definitions/extremlymtorrents.yml | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/extremlymtorrents.yml b/src/Jackett.Common/Definitions/extremlymtorrents.yml index 7f25a0182..cb1a72c3f 100644 --- a/src/Jackett.Common/Definitions/extremlymtorrents.yml +++ b/src/Jackett.Common/Definitions/extremlymtorrents.yml @@ -128,17 +128,15 @@ search: args: cat _language: selector: td:nth-last-child(5) - description: + _vip: selector: img[src="/images/vip-icon.png"] - attribute: src - filters: - - name: replace - args: ["/images/vip-icon.png", " VIP ONLY"] + attribute: alt + optional: true title: selector: a[href^="file.php?id="] b filters: - name: append - args: " {{ .Result._language }}{{ .Result.description }}" + args: " {{ .Result._language }}{{ if .Result._vip }} VIP ONLY{{ else }}{{ end }}" details: selector: a[href^="file.php?id="] attribute: href @@ -170,6 +168,19 @@ search: "*": 1 uploadvolumefactor: text: 1 + _genre: + # Drama, Romance | N/A | 2022 | 112 min | N/A + # Drama:Family:Romance + selector: td:nth-child(2) + remove: a + filters: + - name: split + args: ["|", 0] + genre: + # if its VIP then do not keep genre + text: "{{ if .Result._vip }}{{ else }}{{ .Result._genre }}{{ end }}" + description: + text: "{{ if .Result._vip }}VIP ONLY{{ else }}{{ .Result.genre }}{{ end }}" minimumratio: text: 1.0 minimumseedtime: