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
filters:
- name: regexp
args: (/?torrent/\d+)
args: (/?detail/\d+)
download:
text: "{{ .Result.details }}"
size:

View File

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

View File

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

View File

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