BakaBT: various improvements

This commit is contained in:
kaso17 2018-12-28 18:09:59 +01:00
parent 590fd5139f
commit a0d0b2cb40
1 changed files with 10 additions and 2 deletions

View File

@ -133,12 +133,13 @@ namespace Jackett.Common.Indexers
release.Title = release.Title.Substring(0, insertPoint) + "Season 1 " + release.Title.Substring(insertPoint);
}
release.Description = release.Title;
release.Category = new List<int>() { TorznabCatType.TVAnime.ID };
release.Description = qRow.Find("span.tags").Text();
release.Guid = new Uri(SiteLink + qTitleLink.Attr("href"));
release.Comments = release.Guid;
release.Link = new Uri(SiteLink + qRow.Find(".peers a").First().Attr("href"));
release.Grabs = int.Parse(qRow.Find(".peers").Get(0).FirstChild.NodeValue.TrimEnd().TrimEnd('/').TrimEnd());
release.Seeders = int.Parse(qRow.Find(".peers a").Get(0).InnerText);
release.Peers = release.Seeders + int.Parse(qRow.Find(".peers a").Get(1).InnerText);
@ -165,6 +166,13 @@ namespace Jackett.Common.Indexers
release.PublishDate = DateTime.ParseExact(dateStr, "dd MMM yy", CultureInfo.InvariantCulture);
}
if (qRow.Find("span.freeleech").Length > 0)
release.DownloadVolumeFactor = 0;
else
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 1;
releases.Add(release);
}
}