mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
matrix: new selectors
the details link is gone, so extract the id and manually build the details and download links
This commit is contained in:
@@ -111,7 +111,7 @@ search:
|
|||||||
type: "{{ .Config.type }}"
|
type: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table.table-center[width="905"] > tbody > tr:has(a[href*="details.php?id="])
|
selector: table.table-center[width="905"] > tbody > tr:has(a[onclick])
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
categorydesc:
|
categorydesc:
|
||||||
@@ -119,17 +119,19 @@ search:
|
|||||||
attribute: title
|
attribute: title
|
||||||
title:
|
title:
|
||||||
selector: td:nth-child(2) > div > a
|
selector: td:nth-child(2) > div > a
|
||||||
|
_id:
|
||||||
|
selector: a[onclick]
|
||||||
|
attribute: onclick
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: toggleRow\((\d+),
|
||||||
|
filters:
|
||||||
|
- name: querystring
|
||||||
|
args: id
|
||||||
details:
|
details:
|
||||||
selector: a[href*="details.php?id="]
|
text: "details.php?id={{ .Result._id }}"
|
||||||
attribute: href
|
|
||||||
filters:
|
|
||||||
- name: re_replace
|
|
||||||
args: ["&hit=1.+", ""]
|
|
||||||
download:
|
download:
|
||||||
text: "{{ .Result.details }}"
|
text: "download.php?id={{ .Result._id }}"
|
||||||
filters:
|
|
||||||
- name: replace
|
|
||||||
args: ["details.php", "download.php"]
|
|
||||||
imdbid:
|
imdbid:
|
||||||
selector: a[href*="imdb.com/title/tt"]
|
selector: a[href*="imdb.com/title/tt"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user