torrent9clone: new details processing

This commit is contained in:
Garfield69
2024-03-31 13:04:39 +13:00
parent ebd81ac31e
commit 8623721d8a

View File

@@ -127,12 +127,22 @@ search:
args: ["(?i)\\b(MULTI(?!.*(?:FRENCH|ENGLISH|VOSTFR)))\\b", "{{ .Config.multilanguage }}"] args: ["(?i)\\b(MULTI(?!.*(?:FRENCH|ENGLISH|VOSTFR)))\\b", "{{ .Config.multilanguage }}"]
title: title:
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}" text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
details: details_href:
selector: td:nth-child(1) a selector: td:nth-child(1) a[href]
attribute: onclick attribute: href
optional: true
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?torrent/\d+)
details_onclick:
selector: td:nth-child(1) a[onclick]
attribute: onclick
optional: true
filters:
- name: regexp
args: (/?torrent/\d+)
details:
text: "{{ or .Result.details_href .Result.details_onclick }}"
download: download:
text: "{{ .Result.details }}" text: "{{ .Result.details }}"
date: date: