mirror of https://github.com/Jackett/Jackett
PTP: add freeleech tag. resolves #6056
This commit is contained in:
parent
a8f7685446
commit
0d83ec2a07
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue