mirror of https://github.com/Radarr/Radarr
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace NzbDrone.Core.Indexers.Newznab
|
|
{
|
|
public class NewznabCapabilities
|
|
{
|
|
public int DefaultPageSize { get; set; }
|
|
public int MaxPageSize { get; set; }
|
|
public string[] SupportedSearchParameters { get; set; }
|
|
public string[] SupportedMovieSearchParameters { get; set; }
|
|
public bool SupportsAggregateIdSearch { get; set; }
|
|
public List<NewznabCategory> Categories { get; set; }
|
|
|
|
public NewznabCapabilities()
|
|
{
|
|
DefaultPageSize = 100;
|
|
MaxPageSize = 100;
|
|
SupportedSearchParameters = new[] { "q" };
|
|
SupportedMovieSearchParameters = new[] { "q", "imdbid", "imdbtitle", "imdbyear" };
|
|
SupportsAggregateIdSearch = false;
|
|
Categories = new List<NewznabCategory>();
|
|
}
|
|
}
|
|
|
|
public class NewznabCategory
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
|
|
public List<NewznabCategory> Subcategories { get; set; }
|
|
}
|
|
}
|