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:
Jayson Reis 2022-06-26 22:00:47 +02:00 committed by GitHub
parent b63b380ca2
commit c574c4c476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ search:
attribute: title
title:
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:
selector: a[href^="details.php?id="]
attribute: href