SpeedCD: add freeleech support

This commit is contained in:
kaso17 2017-02-24 19:16:57 +01:00
parent fbe4d5f1a7
commit cfd780b544
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}