mirror of
https://github.com/Jackett/Jackett
synced 2024-12-26 09:48:37 +00:00
AmigosShare,BJShare: Better Brazilian Portuguese support (#11323)
This commit is contained in:
parent
e7b258eab3
commit
a6617ed663
2 changed files with 7 additions and 1 deletions
|
@ -205,7 +205,7 @@ search:
|
|||
- name: append
|
||||
args: "{{ if .Result._language }} {{ .Result._language }}{{ else }}{{ end }}"
|
||||
- name: re_replace
|
||||
args: ["(Dual-Audio|Dublado)", "Brazilian $1"]
|
||||
args: ["(Dual|[Nn]acional|[Dd]ublado)", "Brazilian $1"]
|
||||
details:
|
||||
selector: a[href*="torrents-details.php?id="], a[href*="details-misc.php?id="]
|
||||
attribute: href
|
||||
|
|
|
@ -394,6 +394,9 @@ namespace Jackett.Common.Indexers
|
|||
titleElements[2] + " " + titleElements[4] + " " + string.Join(
|
||||
" ", titleElements.Skip(6));
|
||||
|
||||
if (Regex.IsMatch(release.Description, "(Dual|[Nn]acional|[Dd]ublado)"))
|
||||
release.Title += " Brazilian";
|
||||
|
||||
// This tracker does not provide an publish date to search terms (only on last 24h page)
|
||||
release.PublishDate = DateTime.Today;
|
||||
|
||||
|
@ -512,6 +515,9 @@ namespace Jackett.Common.Indexers
|
|||
}
|
||||
}
|
||||
|
||||
if (Regex.IsMatch(extraInfo, "(Dual|[Nn]acional|[Dd]ublado)"))
|
||||
extraInfo += " Brazilian";
|
||||
|
||||
var catStr = qCatLink.GetAttribute("href").Split('=')[1].Split('&')[0];
|
||||
|
||||
release.Title = ParseTitle(release.Title, seasonEp, year, catStr);
|
||||
|
|
Loading…
Reference in a new issue