From 859da99442c6ff95d4731b31f1e3a3c23d71428d Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 2 Apr 2019 11:21:49 +1300 Subject: [PATCH] yggtorrent: optionally disable sonarrv3hack. resolves #4987 --- src/Jackett.Common/Definitions/yggtorrent.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index 34b3f7c37..05506a84b 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -139,6 +139,10 @@ type: checkbox label: Enhance sonarr compatibility with anime by renaming episode (xxx to exxx). Works only if episode is at the end of the query. Can disturb movies search. (back to the future 3 -> back to the future e3) default: false + - name: sonarrv3hack + type: checkbox + label: "Enable Full season search hack: Sonarrv3 send 'Series Name SXX' but it won't match 'Series Name - Saison 01' for example so we remove the 'SXX' ==> 'Series Name'" + default: true login: method: form @@ -159,7 +163,7 @@ keywordsfilters: # Full season seach hack: Sonarrv3 send 'Series Name SXX' but it won't match 'Series Name - Saison 01' for example so we remove the 'SXX' ==> 'Series Name' - name: re_replace - args: ["(.*)[sS](\\d{1,4})$", "$1"] + args: ["(.*)[sS](\\d{1,4})$", "{{ if .Config.sonarrv3hack }}$1{{else}}$1S$2{{end}}"] - name: replace args: ["\"", ""] - name: trim