girotorrent: Improved the char substitution for the title (#5853)

Improved the char substitution for the title
Now only the special char are removed
This commit is contained in:
Jorman 2019-08-15 22:54:07 +02:00 committed by garfield69
parent a3f0105bae
commit dda6a31c28
1 changed files with 5 additions and 1 deletions

View File

@ -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