teamhd: add stripRussianLetters from title config setting. resolves #6241

default: false
This commit is contained in:
Garfield69 2019-10-25 08:50:00 +13:00
parent 7d0b4cca73
commit ecdc9d39e7
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,10 @@
type: info type: info
label: How to get the Cookie label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here.</ol>" default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here.</ol>"
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: false
login: login:
method: cookie method: cookie
@ -74,6 +78,9 @@
attribute: href attribute: href
title: title:
selector: a[href^="/details/id"] selector: a[href^="/details/id"]
filters:
- name: re_replace
args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
details: details:
selector: a[href^="/details/id"] selector: a[href^="/details/id"]
attribute: href attribute: href