From f7c043f831dbb88516f36a82cabbc7460780cbc9 Mon Sep 17 00:00:00 2001 From: Jorman Date: Thu, 15 Aug 2019 22:52:09 +0200 Subject: [PATCH] shareisland: Improved the char substitution for the title (#5856) Improved the char substitution for the title Now only the special char are removed --- src/Jackett.Common/Definitions/shareisland.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/shareisland.yml b/src/Jackett.Common/Definitions/shareisland.yml index f5ec4ddd5..a2949a278 100644 --- a/src/Jackett.Common/Definitions/shareisland.yml +++ b/src/Jackett.Common/Definitions/shareisland.yml @@ -133,8 +133,12 @@ title: selector: a[href^="index.php?page=torrent-details&id="] filters: + # - name: re_replace # replace special characters with " " (space) + # args: ["[^a-zA-Z0-9\\s]|\\.", " "] - name: re_replace # replace special characters with " " (space) - args: ["[^a-zA-Z0-9\\s]|\\.", " "] + args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "] + - name: diacritics + args: replace - name: re_replace # replace multiple spaces args: ["[ ]{2,}", " "] # normalize to SXXEYY format