mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 03:38:31 +00:00
generationfree: add multi replacement option. #5279
This commit is contained in:
parent
ea14a5a194
commit
a12f573e80
1 changed files with 31 additions and 1 deletions
|
@ -104,6 +104,29 @@
|
||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
|
settings:
|
||||||
|
- name: username
|
||||||
|
type: text
|
||||||
|
label: Username
|
||||||
|
- name: password
|
||||||
|
type: password
|
||||||
|
label: Password
|
||||||
|
- name: multilang
|
||||||
|
type: checkbox
|
||||||
|
label: Replace MULTI by another language in release name
|
||||||
|
default: false
|
||||||
|
- name: multilanguage
|
||||||
|
type: select
|
||||||
|
label: Replace MULTI by this language
|
||||||
|
default: VOSTFR
|
||||||
|
options:
|
||||||
|
FRENCH : "FRENCH"
|
||||||
|
"MULTI FRENCH": "MULTI FRENCH"
|
||||||
|
ENGLISH: "ENGLISH"
|
||||||
|
"MULTI ENGLISH": "MULTI ENGLISH"
|
||||||
|
VOSTFR: "VOSTFR"
|
||||||
|
"MULTI VOSTFR": "MULTI VOSTFR"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: account-login.php
|
path: account-login.php
|
||||||
method: post
|
method: post
|
||||||
|
@ -147,8 +170,15 @@
|
||||||
rows:
|
rows:
|
||||||
selector: table.ttable_headinner > tbody > tr.t-row
|
selector: table.ttable_headinner > tbody > tr.t-row
|
||||||
fields:
|
fields:
|
||||||
title:
|
title_original:
|
||||||
selector: a[href^="torrents-details.php?id="] b
|
selector: a[href^="torrents-details.php?id="] b
|
||||||
|
title_multilang:
|
||||||
|
text: "{{ .Result.title_original }}"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["\\s[Mm][Uu][Ll][Tt][Ii]\\s", " {{ .Config.multilanguage }} "]
|
||||||
|
title:
|
||||||
|
text: "{{if .Config.multilang }}{{ .Result.title_multilang }}{{else}}{{ .Result.title_original }}{{end}}"
|
||||||
category:
|
category:
|
||||||
selector: a[href^="torrents.php?cat="]
|
selector: a[href^="torrents.php?cat="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Add table
Reference in a new issue