mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 14:14:25 +00:00
therarbg:: switch to DL with infohash fetched from details/?format=json #14685
avoids hitting site with a html request when downloading magnet off the details page
This commit is contained in:
parent
8d60292b2f
commit
53afafeb29
1 changed files with 12 additions and 4 deletions
|
@ -54,9 +54,17 @@ settings:
|
|||
s: size asc
|
||||
|
||||
download:
|
||||
selectors:
|
||||
- selector: a[href^="magnet:?xt="]
|
||||
attribute: href
|
||||
infohash:
|
||||
hash:
|
||||
selector: :root
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "\"info_hash\": \"([A-F|a-f|0-9]{40})\","
|
||||
title:
|
||||
selector: :root
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "\"name\": \"(.+?)\","
|
||||
|
||||
search:
|
||||
paths:
|
||||
|
@ -83,7 +91,7 @@ search:
|
|||
details:
|
||||
text: "/post-detail/{{ .Result._id }}/{{ .Result.details_url }}/"
|
||||
download:
|
||||
text: "{{ .Result.details }}"
|
||||
text: "{{ .Result.details }}?format=json"
|
||||
poster:
|
||||
selector: t
|
||||
imdbid:
|
||||
|
|
Loading…
Add table
Reference in a new issue