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
1 changed files with 12 additions and 4 deletions

View File

@ -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: