assorted French indexers: fix details and magnet. resolves #15610

This commit is contained in:
Garfield69 2024-09-28 11:33:49 +12:00
parent e68bbe2177
commit df82aa3c33
4 changed files with 10 additions and 6 deletions

View File

@ -135,7 +135,7 @@ search:
attribute: href attribute: href
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?detail/\d+)
download: download:
text: "{{ .Result.details }}" text: "{{ .Result.details }}"
size: size:

View File

@ -136,14 +136,14 @@ search:
optional: true optional: true
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?detail/\d+)
details_onclick: details_onclick:
selector: td:nth-child(1) a[onclick] selector: td:nth-child(1) a[onclick]
attribute: onclick attribute: onclick
optional: true optional: true
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?detail/\d+)
details: details:
text: "{{ or .Result.details_href .Result.details_onclick }}" text: "{{ or .Result.details_href .Result.details_onclick }}"
download: download:

View File

@ -139,14 +139,14 @@ search:
optional: true optional: true
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?detail/\d+)
details_onclick: details_onclick:
selector: td:nth-child(1) a[onclick] selector: td:nth-child(1) a[onclick]
attribute: onclick attribute: onclick
optional: true optional: true
filters: filters:
- name: regexp - name: regexp
args: (/?torrent/\d+) args: (/?detail/\d+)
details: details:
text: "{{ or .Result.details_href .Result.details_onclick }}" text: "{{ or .Result.details_href .Result.details_onclick }}"
download: download:

View File

@ -92,8 +92,12 @@ settings:
download: download:
selectors: selectors:
- selector: a:has(i.fa-magnet) - selector: a[href^="magnet:?"]
attribute: href attribute: href
- selector: script:contains("magnet:?")
filters:
- name: regexp
args: "\\s'(magnet:\\?.+?)';"
search: search:
paths: paths: