From 7b072967b3dad9d5ec74df0265a727a53ad40785 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 13 Oct 2021 17:37:20 +1300 Subject: [PATCH] torrentwhiz: use infohash to prevent hardcoding tracker list --- src/Jackett.Common/Definitions/torrentwhiz.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentwhiz.yml b/src/Jackett.Common/Definitions/torrentwhiz.yml index a5879fb7b..eab8b5e11 100644 --- a/src/Jackett.Common/Definitions/torrentwhiz.yml +++ b/src/Jackett.Common/Definitions/torrentwhiz.yml @@ -43,16 +43,22 @@ settings: default: This site may use Cloudflare DDoS Protection, therefore Jackett requires FlareSolver to access it. download: - selectors: - - selector: a[href*="magnet:?xt="] + infohash: + hash: + selector: a[href^="magnet:?xt="] attribute: href filters: - - name: append - args: "&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.si%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.pirateparty.gr%3A6969%2Fannounce&tr=udp%3A%2F%2Fipv4.tracker.harry.lu%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.cyberia.is%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&tr=udp%3A%2F%2Fdenis.stalker.upeer.me%3A6969%2Fannounce" + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: h1.panel-title + filters: + - name: trim + - name: validfilename search: paths: - # https://torrentwiz22.me/bbs/search.php?url=&stx=sin&srows=100&gr_id=&sfl=wr_subject&sop=and + # https://torrentwiz31.com/bbs/search.php?url=&stx=sin&srows=100&gr_id=&sfl=wr_subject&sop=and - path: bbs/search.php inputs: stx: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"