mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
yggtorrents and downloadville: support multi to french title rewriting (#3130)
This commit is contained in:
@@ -128,6 +128,10 @@
|
|||||||
"2" : "Argent (Silver)"
|
"2" : "Argent (Silver)"
|
||||||
"3" : "Or (Gold)"
|
"3" : "Or (Gold)"
|
||||||
"4" : "Argent & Or (Both)"
|
"4" : "Argent & Or (Both)"
|
||||||
|
- name: multilang
|
||||||
|
type: checkbox
|
||||||
|
label: Replace MULTI by FRENCH in release name
|
||||||
|
default: false
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: tracker/index.php?page=login
|
path: tracker/index.php?page=login
|
||||||
@@ -168,8 +172,15 @@
|
|||||||
rows:
|
rows:
|
||||||
selector: table > tbody > tr > td > table.lista > tbody > tr:has(td[onmouseover="this.className='post'"])
|
selector: table > tbody > tr > td > table.lista > tbody > tr:has(td[onmouseover="this.className='post'"])
|
||||||
fields:
|
fields:
|
||||||
title:
|
title_phase1:
|
||||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
||||||
|
title_multilang:
|
||||||
|
text: "{{ .Result.title_phase1 }}r"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[\\.\\s\\[\\-[Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".FRENCH."]
|
||||||
|
title:
|
||||||
|
text: "{{if .Config.multilang }}{{ .Result.title_multilang }}{{else}}{{ .Result.title_phase1 }}{{end}}"
|
||||||
details:
|
details:
|
||||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
@@ -96,6 +96,10 @@
|
|||||||
type: checkbox
|
type: checkbox
|
||||||
label: Try to normalize releases names by moving year after the title
|
label: Try to normalize releases names by moving year after the title
|
||||||
default: false
|
default: false
|
||||||
|
- name: multilang
|
||||||
|
type: checkbox
|
||||||
|
label: Replace MULTI by FRENCH in release name
|
||||||
|
default: false
|
||||||
|
|
||||||
login:
|
login:
|
||||||
method: form
|
method: form
|
||||||
@@ -140,8 +144,15 @@
|
|||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(\\s{2,5})", " "]
|
args: ["(\\s{2,5})", " "]
|
||||||
- name: trim
|
- name: trim
|
||||||
title:
|
title_phase1:
|
||||||
text: "{{if .Config.filter_title }}{{ .Result.title_filtered }}{{else}}{{ .Result.title_normal }}{{end}}"
|
text: "{{if .Config.filter_title }}{{ .Result.title_filtered }}{{else}}{{ .Result.title_normal }}{{end}}"
|
||||||
|
title_multilang:
|
||||||
|
text: "{{ .Result.title_phase1 }}r"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[\\.\\s\\[\\-[Mm][Uu][Ll][Tt][Ii][\\.i\\s\\]\\-]", ".FRENCH."]
|
||||||
|
title:
|
||||||
|
text: "{{if .Config.multilang }}{{ .Result.title_multilang }}{{else}}{{ .Result.title_phase1 }}{{end}}"
|
||||||
details:
|
details:
|
||||||
selector: ":nth-child(2) > a"
|
selector: ":nth-child(2) > a"
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -238,4 +249,4 @@
|
|||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: "1"
|
text: "1"
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: "1"
|
text: "1"
|
||||||
|
Reference in New Issue
Block a user