magico: surround year with brackets resolves #9345

This commit is contained in:
Garfield69
2020-08-17 10:34:29 +12:00
parent f8ad109b78
commit 47bcec15a5

View File

@@ -126,10 +126,12 @@ search:
paths: paths:
- path: / - path: /
keywordsfilters: keywordsfilters:
- name: re_replace # add brackets to year on searchquery if missing
args: ["(\\b(19|20)\\d{2})", " ($1)"]
- name: replace # use this as a workaround till #893 is implemented - name: replace # use this as a workaround till #893 is implemented
args: ["Greys Anatomy", "Grey's Anatomy"] args: ["Greys Anatomy", "Grey's Anatomy"]
- name: re_replace - name: re_replace
args: ["[^\\w\\d]+", "%"] args: ["[^\\w\\d\\(\\)]+", "%"]
inputs: inputs:
p: torrents p: torrents
pid: 32 pid: 32