PTP: add freeleech tag. resolves #6056

This commit is contained in:
Garfield69 2019-10-06 09:30:28 +13:00
parent a8f7685446
commit 0d83ec2a07
1 changed files with 7 additions and 0 deletions

View File

@ -168,6 +168,8 @@ namespace Jackett.Common.Indexers
release.Guid = release.Link;
release.MinimumRatio = 1;
release.MinimumSeedTime = 345600;
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 1;
release.Category = new List<int> { 2000 };
bool golden, scene, check;
@ -242,6 +244,11 @@ namespace Jackett.Common.Indexers
if (titletags.Count() > 0)
release.Title += " [" + string.Join(" / ", titletags) + "]";
bool freeleech;
bool.TryParse((string)torrent["FreeleechType"], out freeleech);
if (freeleech)
release.DownloadVolumeFactor = 0;
releases.Add(release);
}
}