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