extremlymtorrents: add genre results

This commit is contained in:
Garfield69 2022-08-22 20:09:39 +12:00
parent 75bb10cdda
commit b9c89c2383
1 changed files with 17 additions and 6 deletions

View File

@ -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: