mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
434b07ae64
* add support for seeders, seed_ratio and seed_duration for LazyLibrarian
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace NzbDrone.Core.Applications.LazyLibrarian
|
|
{
|
|
public class LazyLibrarianIndexerResponse
|
|
{
|
|
public bool Success { get; set; }
|
|
public LazyLibrarianIndexerData Data { get; set; }
|
|
public LazyLibrarianError Error { get; set; }
|
|
}
|
|
|
|
public class LazyLibrarianIndexerData
|
|
{
|
|
public List<LazyLibrarianIndexer> Torznabs { get; set; }
|
|
public List<LazyLibrarianIndexer> Newznabs { get; set; }
|
|
}
|
|
|
|
public enum LazyLibrarianProviderType
|
|
{
|
|
Newznab,
|
|
Torznab
|
|
}
|
|
|
|
public class LazyLibrarianIndexer
|
|
{
|
|
public string Name { get; set; }
|
|
public string Host { get; set; }
|
|
public string Apikey { get; set; }
|
|
public string Categories { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public string Altername { get; set; }
|
|
public LazyLibrarianProviderType Type { get; set; }
|
|
public int Priority { get; set; }
|
|
public double SeedRatio { get; set; }
|
|
public int SeedTime { get; set; }
|
|
public int MinimumSeeders { get; set; }
|
|
|
|
public bool Equals(LazyLibrarianIndexer other)
|
|
{
|
|
if (ReferenceEquals(null, other))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return other.Host == Host &&
|
|
other.Apikey == Apikey &&
|
|
other.Name == Name &&
|
|
other.Categories == Categories &&
|
|
other.Enabled == Enabled &&
|
|
other.Altername == Altername &&
|
|
other.Priority == Priority &&
|
|
other.SeedRatio == SeedRatio &&
|
|
other.SeedTime == SeedTime &&
|
|
other.MinimumSeeders == MinimumSeeders;
|
|
}
|
|
}
|
|
}
|