From 8842a0aa1b9273bb617c0a60fe9e3a8eef022ca8 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 18 Jul 2023 20:07:40 +0100 Subject: [PATCH] ygg: strip season as site does not support partial matches. resolves #14565 (#14571) --- 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 0e99f4c7c..e14306b20 100644 --- a/src/Jackett.Common/Definitions/yggcookie.yml +++ b/src/Jackett.Common/Definitions/yggcookie.yml @@ -351,6 +351,9 @@ search: # fix date search and workaround for internal YGG issues - name: re_replace args: ["[\\\\\\-\\.\\/!\\s]+", " "] + # strip season as site does not support partial matches + - name: re_replace + args: ["(?i)\\bS\\d{1,3}\\b", ""] - name: trim # put each word in quotations to prevent exact phrase search - name: re_replace diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index 75e32890d..58f737f9d 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -355,6 +355,9 @@ search: # fix date search and workaround for internal YGG issues - name: re_replace args: ["[\\\\\\-\\.\\/!\\s]+", " "] + # strip season as site does not support partial matches + - name: re_replace + args: ["(?i)\\bS\\d{1,3}\\b", ""] - name: trim # put each word in quotations to prevent exact phrase search - name: re_replace