From dda6a31c28f9e01706fd2edd489b18c08fd66044 Mon Sep 17 00:00:00 2001 From: Jorman Date: Thu, 15 Aug 2019 22:54:07 +0200 Subject: [PATCH] girotorrent: Improved the char substitution for the title (#5853) Improved the char substitution for the title Now only the special char are removed --- src/Jackett.Common/Definitions/girotorrent.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/girotorrent.yml b/src/Jackett.Common/Definitions/girotorrent.yml index 53f614b27..8f0342f0a 100644 --- a/src/Jackett.Common/Definitions/girotorrent.yml +++ b/src/Jackett.Common/Definitions/girotorrent.yml @@ -155,8 +155,12 @@ title: selector: a[onmouseover][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