1
0
Fork 0
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:
Garfield69 2024-03-12 21:33:24 +13:00
parent 8d60292b2f
commit 53afafeb29

View file

@ -54,9 +54,17 @@ settings:
s: size asc s: size asc
download: download:
selectors: infohash:
- selector: a[href^="magnet:?xt="] hash:
attribute: href selector: :root
filters:
- name: regexp
args: "\"info_hash\": \"([A-F|a-f|0-9]{40})\","
title:
selector: :root
filters:
- name: regexp
args: "\"name\": \"(.+?)\","
search: search:
paths: paths:
@ -83,7 +91,7 @@ search:
details: details:
text: "/post-detail/{{ .Result._id }}/{{ .Result.details_url }}/" text: "/post-detail/{{ .Result._id }}/{{ .Result.details_url }}/"
download: download:
text: "{{ .Result.details }}" text: "{{ .Result.details }}?format=json"
poster: poster:
selector: t selector: t
imdbid: imdbid: