From bf81033c27c7b39bd2a9af95abda782ee796450a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 13 Oct 2021 17:04:52 +1300 Subject: [PATCH] torrentmax: fix 2e5ef30 use of the escape quote causes :has() to not match, generating System.Exception: Error while parsing field=category, selector=div.media-heading a, value=humor: Object reference not set to an instance of an object. also 19 is not a category as far as I can tell added infohash so we can drop hardcoded tracker list on download block --- src/Jackett.Common/Definitions/torrentmax.yml | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentmax.yml b/src/Jackett.Common/Definitions/torrentmax.yml index 810c6e59a..ad4d69395 100644 --- a/src/Jackett.Common/Definitions/torrentmax.yml +++ b/src/Jackett.Common/Definitions/torrentmax.yml @@ -41,16 +41,24 @@ settings: default: This site may use Cloudflare DDoS Protection, therefore Jackett requires FlareSolver to access it. download: - selectors: - - selector: a[href*="magnet:?xt="] + infohash: + usebeforeresponse: true + 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" + filters: + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: h3.panel-title + filters: + - name: trim + - name: validfilename search: paths: - # https://torrentmax15.com/bbs/search.php?srows=100&gr_id=&sfl=wr_subject&stx=2021&sop=and + # https://torrentmax1.net/bbs/search.php?srows=100&gr_id=&sfl=wr_subject&stx=2021&sop=and - path: bbs/search.php inputs: stx: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}" @@ -62,7 +70,7 @@ search: sop: and rows: - selector: div.search-media div.media:not(:has(a[href*=\"PHOTO\"])):not(:has(a[href*=\"19\"])):not(:has(a[href*=\"GIRL\"])):not(:has(a[href*=\"CAM\"])):not(:has(a[href*=\"notice\"])):not(:has(a[href*=\"humor\"])) + selector: div.search-media div.media:not(:has(a[href*="/max/PHOTO/"])):not(:has(a[href*="/max/GIRL/"])):not(:has(a[href*="/max/CAM/"])):not(:has(a[href*="/max/notice/"])):not(:has(a[href*="/max/humor/"])) fields: category: