exttorrents: fix paths, reduce to 2 queries, and remove UA

This commit is contained in:
ilike2burnthing
2023-03-07 03:03:01 +00:00
committed by GitHub
parent 7a183ebb83
commit 0a4b80a939

View File

@@ -106,14 +106,8 @@ download:
search:
paths:
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}&{{ else }}latest/?{{ end }}order={{ .Config.sort }}&sort={{ .Config.type }}"
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}/2/&{{ else }}latest/2/?{{ end }}order={{ .Config.sort }}&sort={{ .Config.type }}"
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}/3/&{{ else }}latest/3/?{{ end }}order={{ .Config.sort }}&sort={{ .Config.type }}"
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}/4/&{{ else }}latest/4/?{{ end }}order={{ .Config.sort }}&sort={{ .Config.type }}"
headers:
# site presents hcaptcha challenge for Jackett's User-Agent, so slightly alter it here (e.g. Safari/537.36 > Safari/537.35)
User-Agent: ["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.35"]
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}&order={{ .Config.sort }}&sort={{ .Config.type }}{{ else }}latest/{{ end }}"
- path: "{{ if .Keywords }}search/?q={{ .Keywords }}/2/&order={{ .Config.sort }}&sort={{ .Config.type }}{{ else }}latest/2/{{ end }}"
rows:
selector: table.table-striped > tbody > tr