1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-29 11:17:22 +00:00

TPB: make tpb return 0 results when query is ideographs. resolves #7291

This commit is contained in:
Garfield69 2020-04-12 09:28:54 +12:00
parent f7b60376af
commit 46bb3bbe67

View file

@ -120,6 +120,9 @@
paths:
- path: "{{ if .Keywords }}/search/{{ .Keywords }}/0/{{ .Config.order }}/{{ join .Categories \",\"}}{{else}}/recent{{end}}"
keywordsfilters:
# replace simplified chinese as this confuses TPB search engine #7291
- name: re_replace
args: ["([\\p{IsCJKUnifiedIdeographs}\\W]+)", "#"]
# currently, the only uploader for General Hospital puts a space between season and episode
# this filter searches both formats, so "General Hospital S01E02" becomes "General Hospital S01E02 | (S01 E02)"
- name: re_replace