Yggtorrent and downloadville: Better MULTI replace (#3135)

This commit is contained in:
Celedhrim
2018-05-23 14:11:22 +02:00
committed by kaso17
parent f602b3db24
commit 205f6cac12
2 changed files with 20 additions and 6 deletions

View File

@@ -130,9 +130,16 @@
"4" : "Argent & Or (Both)"
- name: multilang
type: checkbox
label: Replace MULTI by FRENCH in release name
label: Replace MULTI by another language in release name
default: false
- name: multilanguage
type: select
label: Replace MULTI by this language
default: FRENCH
options:
FRENCH : "FRENCH"
MULTI.FRENCH : "MULTI.FRENCH"
ENGLISH: "ENGLISH"
login:
path: tracker/index.php?page=login
method: post
@@ -178,7 +185,7 @@
text: "{{ .Result.title_phase1 }}r"
filters:
- name: re_replace
args: ["[\\.\\s\\[\\-[Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".FRENCH."]
args: ["[\\.\\s\\[\\-][Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".{{ .Config.multilanguage }}."]
title:
text: "{{if .Config.multilang }}{{ .Result.title_multilang }}{{else}}{{ .Result.title_phase1 }}{{end}}"
details:

View File

@@ -98,9 +98,16 @@
default: false
- name: multilang
type: checkbox
label: Replace MULTI by FRENCH in release name
label: Replace MULTI by another language in release name
default: false
- name: multilanguage
type: select
label: Replace MULTI by this language
default: FRENCH
options:
FRENCH : "FRENCH"
MULTI.FRENCH: "MULTI.FRENCH"
ENGLISH: "ENGLISH"
login:
method: form
path: /
@@ -150,7 +157,7 @@
text: "{{ .Result.title_phase1 }}r"
filters:
- name: re_replace
args: ["[\\.\\s\\[\\-[Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".FRENCH."]
args: ["[\\.\\s\\[\\-][Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".{{ .Config.multilanguage }}."]
title:
text: "{{if .Config.multilang }}{{ .Result.title_multilang }}{{else}}{{ .Result.title_phase1 }}{{end}}"
details: