From 4597590b49e93ad77887fe1cca649fc797f440a0 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 15 Feb 2021 18:01:14 +0000 Subject: [PATCH] yggtorrent: add quotations to keywords to prevent exact phrase search. resolves #11098 (#11101) --- src/Jackett.Common/Definitions/yggcookie.yml | 3 +++ src/Jackett.Common/Definitions/yggtorrent.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Jackett.Common/Definitions/yggcookie.yml b/src/Jackett.Common/Definitions/yggcookie.yml index d7ddb06d0..e04ca1270 100644 --- a/src/Jackett.Common/Definitions/yggcookie.yml +++ b/src/Jackett.Common/Definitions/yggcookie.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index 929497a95..b43e9f2f8 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -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