From cfd780b544293bb67ae9987f8aa1aa18e6219e1a Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 24 Feb 2017 19:16:57 +0100 Subject: [PATCH] SpeedCD: add freeleech support --- src/Jackett/Indexers/SpeedCD.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Indexers/SpeedCD.cs b/src/Jackett/Indexers/SpeedCD.cs index 0d080d387..755a8f5c0 100644 --- a/src/Jackett/Indexers/SpeedCD.cs +++ b/src/Jackett/Indexers/SpeedCD.cs @@ -169,7 +169,6 @@ namespace Jackett.Indexers release.Link = link; release.PublishDate = publishDate; release.Size = size; - release.Description = release.Title; release.Seeders = seeders; release.Peers = seeders + leechers; release.MinimumRatio = 1; @@ -177,6 +176,13 @@ namespace Jackett.Indexers release.Category = MapTrackerCatToNewznab(category.ToString()); release.Comments = guid; + if (torrentData.Find("span:contains(\"[Freeleech]\")").Any()) + release.DownloadVolumeFactor = 0; + else + release.DownloadVolumeFactor = 1; + + release.UploadVolumeFactor = 1; + releases.Add(release); }