mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Patch/updates (#887)
* Update HDBits internal logic * TMDb List validation * Add Trakt validation, update rest to implement IProviderConfig * Update wording
This commit is contained in:
@@ -51,6 +51,8 @@ namespace NzbDrone.Core.Indexers.HDBits
|
||||
foreach (var result in queryResults)
|
||||
{
|
||||
var id = result.Id;
|
||||
var internalRelease = (result.TypeOrigin == 1 ? true : false);
|
||||
|
||||
torrentInfos.Add(new HDBitsInfo()
|
||||
{
|
||||
Guid = string.Format("HDBits-{0}", id),
|
||||
@@ -62,7 +64,7 @@ namespace NzbDrone.Core.Indexers.HDBits
|
||||
Seeders = result.Seeders,
|
||||
Peers = result.Leechers + result.Seeders,
|
||||
PublishDate = result.Added.ToUniversalTime(),
|
||||
Internal = (result.TypeOrigin == 1 ? true : false)
|
||||
Internal = internalRelease
|
||||
});
|
||||
}
|
||||
|
||||
@@ -75,11 +77,7 @@ namespace NzbDrone.Core.Indexers.HDBits
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
// order by date
|
||||
return
|
||||
torrentInfos
|
||||
.OrderByDescending(o => o.PublishDate)
|
||||
.ToArray();
|
||||
return torrentInfos.ToArray();
|
||||
}
|
||||
|
||||
private string GetDownloadUrl(string torrentId)
|
||||
|
Reference in New Issue
Block a user