mirror of https://github.com/Jackett/Jackett
SpeedCD: add freeleech support
This commit is contained in:
parent
fbe4d5f1a7
commit
cfd780b544
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue