gktorrent: new magnet selector

This commit is contained in:
Garfield69 2024-02-19 18:03:36 +13:00
parent 63a06841cf
commit 092b862505
1 changed files with 7 additions and 4 deletions

View File

@ -81,6 +81,7 @@ download:
filters:
- name: regexp
args: "\\s'(magnet:\\?.+?)';"
search:
paths:
- path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{ else }}{{ end }}"
@ -92,7 +93,7 @@ search:
args: ["(?i)(S)(\\d{1,3})$", "saison $2"]
rows:
selector: table.table-hover > tbody > tr:has(a[href*=torrent])
selector: table.table-hover > tbody > tr:has(a[onclick*="torrent/"])
fields:
category:
@ -119,10 +120,12 @@ search:
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
details:
selector: td:nth-child(1) a
attribute: href
attribute: onclick
filters:
- name: regexp
args: (torrent/\d+)
download:
selector: td:nth-child(1) a
attribute: href
text: "{{ .Result.details }}"
size:
selector: td:nth-child(2)
date: