polishtracker-api: fix multilang config. #13566

This commit is contained in:
ilike2burnthing 2022-11-10 23:33:24 +00:00 committed by GitHub
parent 4759bea924
commit 094f9a3ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -98,8 +98,6 @@ search:
selector: id
category:
selector: category
_language:
selector: language
title_phase1:
selector: name
title_multilang:
@ -110,7 +108,7 @@ search:
- name: re_replace
args: ["(?i)(\\.pl\\.)", ".POLISH."]
title:
text: "{{ if eq .Result._language \"pl\" }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
details:
text: "{{ .Config.sitelink }}torrents/{{ .Result._id }}"
download: