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

View File

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