From a0d0b2cb4047b821c3d0c1964cfe1f106ed60a42 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 28 Dec 2018 18:09:59 +0100 Subject: [PATCH] BakaBT: various improvements --- src/Jackett.Common/Indexers/BakaBT.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/BakaBT.cs b/src/Jackett.Common/Indexers/BakaBT.cs index e678b625b..0c3ff240b 100644 --- a/src/Jackett.Common/Indexers/BakaBT.cs +++ b/src/Jackett.Common/Indexers/BakaBT.cs @@ -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() { 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); } }