From 37390b85728d1e5a6c3195d700385410f10744ac Mon Sep 17 00:00:00 2001 From: Adam Le Bon Date: Thu, 11 Aug 2022 23:16:26 +0200 Subject: [PATCH] yggtorrent, yggcookie: fix exact match search (#13466) --- src/Jackett.Common/Definitions/yggcookie.yml | 2 +- src/Jackett.Common/Definitions/yggtorrent.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/yggcookie.yml b/src/Jackett.Common/Definitions/yggcookie.yml index 5aee0b7ed..639779bed 100644 --- a/src/Jackett.Common/Definitions/yggcookie.yml +++ b/src/Jackett.Common/Definitions/yggcookie.yml @@ -224,7 +224,7 @@ search: - name: trim # put each word in quotations to prevent exact phrase search - name: re_replace - args: ["(\\w+)", "\"$1\""] + args: ["([^\\s]+)", "\"$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 25a4f0e06..d389745ba 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -234,7 +234,7 @@ search: - name: trim # put each word in quotations to prevent exact phrase search - name: re_replace - args: ["(\\w+)", "\"$1\""] + args: ["([^\\s]+)", "\"$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