mirror of
https://github.com/Jackett/Jackett
synced 2025-02-22 22:31:09 +00:00
Bj-Share: adds the year when adding 'last 24h torrents' (#6138)
Signed-off-by: Christian Franchin <christian@corp.kionux.com.br>
This commit is contained in:
parent
0c4a742b32
commit
436970e419
1 changed files with 11 additions and 0 deletions
|
@ -175,6 +175,7 @@ namespace Jackett.Common.Indexers
|
|||
// Get international title if available, or use the full title if not
|
||||
release.Title = Regex.Replace(qTitle.TextContent, @".* \[(.*?)\](.*)", "$1$2");
|
||||
|
||||
var year = "";
|
||||
release.Description = "";
|
||||
foreach (var child in qBJinfoBox.ChildNodes)
|
||||
{
|
||||
|
@ -195,6 +196,11 @@ namespace Jackett.Common.Indexers
|
|||
var publishDate = DateTime.SpecifyKind(DateTime.ParseExact(publishDateStr, "dd/MM/yyyy HH:mm z", CultureInfo.InvariantCulture), DateTimeKind.Unspecified);
|
||||
release.PublishDate = publishDate.ToLocalTime();
|
||||
}
|
||||
else if (line.StartsWith("Ano:"))
|
||||
{
|
||||
year = line.Substring("Ano: ".Length); ;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
release.Description += line + "\n";
|
||||
|
@ -204,6 +210,11 @@ namespace Jackett.Common.Indexers
|
|||
var catStr = qCatLink.GetAttribute("href").Split('=')[1];
|
||||
release.Title = FixAbsoluteNumbering(release.Title);
|
||||
|
||||
if(year != "")
|
||||
{
|
||||
release.Title += " " + year;
|
||||
}
|
||||
|
||||
if (qQuality != null)
|
||||
{
|
||||
var quality = qQuality.TextContent;
|
||||
|
|
Loading…
Reference in a new issue