From 05d4aceff3f2d3e9235cb945e33ee7b7a73e400b Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 5 Jan 2024 15:14:06 +1300 Subject: [PATCH] nyaasi: switch to suing inputs for path --- src/Jackett.Common/Definitions/nyaasi.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Definitions/nyaasi.yml b/src/Jackett.Common/Definitions/nyaasi.yml index b0e774a54..2d0169f4e 100644 --- a/src/Jackett.Common/Definitions/nyaasi.yml +++ b/src/Jackett.Common/Definitions/nyaasi.yml @@ -144,9 +144,22 @@ settings: search: paths: - - path: "?q={{ .Keywords }}&f={{ .Config.filter-id }}&c={{ .Config.cat-id }}&s={{ .Config.sort }}&o={{ .Config.type }}" - # strip 0 from start of episode number - #11019 - - path: "?q={{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}&p=2{{ end }}&f={{ .Config.filter-id }}&c={{ .Config.cat-id }}&s={{ .Config.sort }}&o={{ .Config.type }}" + - path: / + inputs: + q: "{{ .Keywords }}" + f: "{{ .Config.filter-id }}" + c: "{{ .Config.cat-id }}" + s: "{{ .Config.sort }}" + o: "{{ .Config.type }}" + # strip 0 from start of episode number - #11019, or fetch page 2 for keywordless + - path: / + inputs: + q: "{{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}{{ end }}" + p: "{{ if .Keywords }}{{ else }}2{{ end }}" + f: "{{ .Config.filter-id }}" + c: "{{ .Config.cat-id }}" + s: "{{ .Config.sort }}" + o: "{{ .Config.type }}" keywordsfilters: - name: re_replace