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