megapeer - allow 1 character keywords #12371

This commit is contained in:
ilike2burnthing 2022-05-02 18:39:27 +01:00 committed by GitHub
parent 903f7ad034
commit e8c588dde2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ search:
args: ["(?i)S0*(\\d+)", "[$1 сезон]"]
- name: re_replace # E01 to [1 сери]
args: ["(?i)E0*(\\d+)", "[$1 сери]"]
- name: re_replace
args: ["(\\w+)", " %$1"] # prepend % to each word - allow 1 character keywords
inputs:
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}%%{{ end }}"
# does not support multi category searches