1
0
Fork 0
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:
Wagner Caixeta 2021-03-15 20:05:06 -03:00 committed by GitHub
parent e7b258eab3
commit a6617ed663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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);