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: