From ed0545cbf3b9a9ff8eca9d651c40840e983d3bed Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sun, 24 Jan 2021 23:56:20 +0000 Subject: [PATCH] torrentz2k: revert domain *.xyz, update search. resolves #10917 --- src/Jackett.Common/Definitions/torrentz2k.yml | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentz2k.yml b/src/Jackett.Common/Definitions/torrentz2k.yml index a2eb59ceb..bcf7e5485 100644 --- a/src/Jackett.Common/Definitions/torrentz2k.yml +++ b/src/Jackett.Common/Definitions/torrentz2k.yml @@ -6,9 +6,9 @@ language: en-us type: public encoding: UTF-8 links: - - https://torrentz2k.pw/ -legacylinks: - https://torrentz2k.xyz/ +legacylinks: + - https://torrentz2k.pw/ caps: categorymappings: @@ -38,16 +38,16 @@ settings: default: This site may use Cloudflare DDoS Protection, therefore Jackett requires FlareSolver to access it. search: - # https://torrentz2k.pw/search/ + # https://torrentz2k.xyz/search/ or https://torrentz2k.xyz/recent/ paths: - - path: search/ + - path: "{{ if .Keywords }}search/{{ else }}recent/{{ end }}" method: post - - path: search/ + - path: "{{ if .Keywords }}search/{{ else }}recent/{{ end }}" method: post inputs: page: 2 inputs: - q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}:latest:{{ end }}" + $raw: "{{ if .Keywords }}q={{ .Keywords }}{{ else }}recent=recent{{ end }}" category: all keywordsfilters: # the site uses % for wildcard @@ -76,14 +76,11 @@ search: selector: span.btntitle attribute: title details: - selector: a + # details page is only accessible via form and post which Cardigann does not support. + text: "{{ .Config.sitelink }}" + download: + selector: a[href^="magnet:?xt="] attribute: href - infohash: - selector: a - attribute: href - filters: - - name: trim - args: "/" date: selector: td:nth-child(5) filters: