mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: (Nebulance) Changed MinimumSeedTime according to their H&R rules
This commit is contained in:
parent
29e7cc06a1
commit
d9098b612e
1 changed files with 6 additions and 4 deletions
|
|
@ -49,9 +49,9 @@ private IndexerCapabilities SetCapabilities()
|
||||||
var caps = new IndexerCapabilities
|
var caps = new IndexerCapabilities
|
||||||
{
|
{
|
||||||
TvSearchParams = new List<TvSearchParam>
|
TvSearchParams = new List<TvSearchParam>
|
||||||
{
|
{
|
||||||
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.TvMazeId
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.TvMazeId
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.TV);
|
caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.TV);
|
||||||
|
|
@ -213,7 +213,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
||||||
Seeders = ParseUtil.CoerceInt(row.Seed),
|
Seeders = ParseUtil.CoerceInt(row.Seed),
|
||||||
Peers = ParseUtil.CoerceInt(row.Seed) + ParseUtil.CoerceInt(row.Leech),
|
Peers = ParseUtil.CoerceInt(row.Seed) + ParseUtil.CoerceInt(row.Leech),
|
||||||
MinimumRatio = 0, // ratioless
|
MinimumRatio = 0, // ratioless
|
||||||
MinimumSeedTime = 86400, // 24 hours
|
MinimumSeedTime = row.Category.ToLower() == "season" ? 432000 : 86400, // 120 hours for seasons and 24 hours for episodes
|
||||||
DownloadVolumeFactor = 0, // ratioless tracker
|
DownloadVolumeFactor = 0, // ratioless tracker
|
||||||
UploadVolumeFactor = 1
|
UploadVolumeFactor = 1
|
||||||
};
|
};
|
||||||
|
|
@ -272,6 +272,8 @@ public class NebulanceTorrent
|
||||||
[JsonProperty(PropertyName = "rls_name")]
|
[JsonProperty(PropertyName = "rls_name")]
|
||||||
public string ReleaseTitle { get; set; }
|
public string ReleaseTitle { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
[JsonProperty(PropertyName = "cat")]
|
||||||
|
public string Category { get; set; }
|
||||||
public string Size { get; set; }
|
public string Size { get; set; }
|
||||||
public string Seed { get; set; }
|
public string Seed { get; set; }
|
||||||
public string Leech { get; set; }
|
public string Leech { get; set; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue