1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 02:09:24 +00:00

yggtorrent: add quotations to keywords to prevent exact phrase search. resolves #11098 (#11101)

This commit is contained in:
ilike2burnthing 2021-02-15 18:01:14 +00:00 committed by GitHub
parent 37bcc719a5
commit 4597590b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -209,6 +209,9 @@ search:
- name: replace
args: [" ", " "]
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace
args: ["(\\w+)", "\"$1\""]
paths:
- path: "engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order={{ .Config.type }}&sort={{ .Config.sort }}"
followredirect: true

View file

@ -217,6 +217,9 @@ search:
- name: replace
args: [" ", " "]
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace
args: ["(\\w+)", "\"$1\""]
paths:
- path: "engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order={{ .Config.type }}&sort={{ .Config.sort }}"
followredirect: true