2016-12-23 21:45:24 +00:00
|
|
|
|
using System.Collections.Generic;
|
2015-09-26 08:45:13 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
|
{
|
|
|
|
|
public class NewznabCapabilities
|
|
|
|
|
{
|
2016-02-17 20:22:23 +00:00
|
|
|
|
public int DefaultPageSize { get; set; }
|
|
|
|
|
public int MaxPageSize { get; set; }
|
2015-09-26 08:45:13 +00:00
|
|
|
|
public string[] SupportedSearchParameters { get; set; }
|
|
|
|
|
public string[] SupportedTvSearchParameters { get; set; }
|
2017-07-29 02:03:28 +00:00
|
|
|
|
public string[] SupportedAudioSearchParameters { get; set; }
|
2015-10-09 18:57:38 +00:00
|
|
|
|
public bool SupportsAggregateIdSearch { get; set; }
|
2015-09-26 08:45:13 +00:00
|
|
|
|
public List<NewznabCategory> Categories { get; set; }
|
|
|
|
|
|
|
|
|
|
public NewznabCapabilities()
|
|
|
|
|
{
|
2016-02-17 20:22:23 +00:00
|
|
|
|
DefaultPageSize = 100;
|
|
|
|
|
MaxPageSize = 100;
|
2015-09-26 08:45:13 +00:00
|
|
|
|
SupportedSearchParameters = new[] { "q" };
|
|
|
|
|
SupportedTvSearchParameters = new[] { "q", "rid", "season", "ep" }; // This should remain 'rid' for older newznab installs.
|
2017-07-29 02:03:28 +00:00
|
|
|
|
SupportedAudioSearchParameters = new[] { "q", "artist", "album" };
|
2015-10-09 18:57:38 +00:00
|
|
|
|
SupportsAggregateIdSearch = false;
|
2015-09-26 08:45:13 +00:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|