mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-30 15:38:38 +02:00
PTP: add freeleech tag. resolves #6056
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user