mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 06:40:57 +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
|
// Get international title if available, or use the full title if not
|
||||||
release.Title = Regex.Replace(qTitle.TextContent, @".* \[(.*?)\](.*)", "$1$2");
|
release.Title = Regex.Replace(qTitle.TextContent, @".* \[(.*?)\](.*)", "$1$2");
|
||||||
|
|
||||||
|
var year = "";
|
||||||
release.Description = "";
|
release.Description = "";
|
||||||
foreach (var child in qBJinfoBox.ChildNodes)
|
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);
|
var publishDate = DateTime.SpecifyKind(DateTime.ParseExact(publishDateStr, "dd/MM/yyyy HH:mm z", CultureInfo.InvariantCulture), DateTimeKind.Unspecified);
|
||||||
release.PublishDate = publishDate.ToLocalTime();
|
release.PublishDate = publishDate.ToLocalTime();
|
||||||
}
|
}
|
||||||
|
else if (line.StartsWith("Ano:"))
|
||||||
|
{
|
||||||
|
year = line.Substring("Ano: ".Length); ;
|
||||||
|
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
release.Description += line + "\n";
|
release.Description += line + "\n";
|
||||||
|
@ -204,6 +210,11 @@ namespace Jackett.Common.Indexers
|
||||||
var catStr = qCatLink.GetAttribute("href").Split('=')[1];
|
var catStr = qCatLink.GetAttribute("href").Split('=')[1];
|
||||||
release.Title = FixAbsoluteNumbering(release.Title);
|
release.Title = FixAbsoluteNumbering(release.Title);
|
||||||
|
|
||||||
|
if(year != "")
|
||||||
|
{
|
||||||
|
release.Title += " " + year;
|
||||||
|
}
|
||||||
|
|
||||||
if (qQuality != null)
|
if (qQuality != null)
|
||||||
{
|
{
|
||||||
var quality = qQuality.TextContent;
|
var quality = qQuality.TextContent;
|
||||||
|
|
Loading…
Reference in a new issue