Revert "xthor: move input parms to path. resolves #13220"

This reverts commit 8fc965a5c1.
This commit is contained in:
Garfield69 2022-05-03 12:54:59 +12:00
parent e1da56160e
commit 46fbd9ed1c
1 changed files with 7 additions and 1 deletions

View File

@ -113,7 +113,13 @@ settings:
search:
paths:
# https://api.xthor.tk/?passkey=<redacted>&search=&category=&freeleech=&tmdbid=&size=&accent=&price=&page=
- path: "https://api.xthor.tk/?passkey={{ .Config.passkey }}&search={{ if .Query.TMDBID }}{{ else }}{{ .Keywords }}{{ end }}{{ if .Config.freeleech }}&freeleech=1{{ else }}{{ end }}&tmdbid={{ .Query.TMDBID }}&category={{ if .Categories }}{{ range .Categories }}{{.}}+{{end}}{{ else }}{{ end }}"
- path: "https://api.xthor.tk/"
inputs:
passkey: "{{ .Config.passkey }}"
category: "{{ if .Categories }}{{ range .Categories }}{{.}}+{{end}}{{ else }}{{ end }}"
search: "{{ if .Query.TMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
tmdbid: "{{ .Query.TMDBID }}"
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
response:
type: json