mirror of https://github.com/Jackett/Jackett
bitbr: swap dual for language tags on title (#13322)
This make sure that all words with \bDUAL\b are replaced by pt-BR/en-US even though en-US may not be the origin language, but this should at least allow sonarr/radarr to find movies dubbed in portuguese. Co-authored-by: garfield69 <garfield69@outlook.com>
This commit is contained in:
parent
b63b380ca2
commit
c574c4c476
|
@ -135,6 +135,11 @@ search:
|
||||||
attribute: title
|
attribute: title
|
||||||
title:
|
title:
|
||||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args:
|
||||||
|
- "\\bDUAL\\b"
|
||||||
|
- "pt-BR/en-US"
|
||||||
details:
|
details:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Reference in New Issue