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 args: cat
_language: _language:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
description: _vip:
selector: img[src="/images/vip-icon.png"] selector: img[src="/images/vip-icon.png"]
attribute: src attribute: alt
filters: optional: true
- name: replace
args: ["/images/vip-icon.png", " VIP ONLY"]
title: title:
selector: a[href^="file.php?id="] b selector: a[href^="file.php?id="] b
filters: filters:
- name: append - name: append
args: " {{ .Result._language }}{{ .Result.description }}" args: " {{ .Result._language }}{{ if .Result._vip }} VIP ONLY{{ else }}{{ end }}"
details: details:
selector: a[href^="file.php?id="] selector: a[href^="file.php?id="]
attribute: href attribute: href
@ -170,6 +168,19 @@ search:
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 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: minimumratio:
text: 1.0 text: 1.0
minimumseedtime: minimumseedtime: