mirror of
https://github.com/Jackett/Jackett
synced 2025-03-05 11:18:14 +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]
|
||||
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:
|
||||
path: account-login.php
|
||||
method: post
|
||||
|
@ -147,8 +170,15 @@
|
|||
rows:
|
||||
selector: table.ttable_headinner > tbody > tr.t-row
|
||||
fields:
|
||||
title:
|
||||
title_original:
|
||||
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:
|
||||
selector: a[href^="torrents.php?cat="]
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue