2020-05-26 01:55:10 +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; }
|
2017-01-11 15:51:06 +00:00
|
|
|
public string[] SupportedMovieSearchParameters { get; set; }
|
2015-10-09 18:57:38 +00:00
|
|
|
public bool SupportsAggregateIdSearch { get; set; }
|
2021-06-29 02:02:09 +00:00
|
|
|
public string TextSearchEngine { get; set; }
|
|
|
|
public string MovieTextSearchEngine { 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" };
|
2017-01-11 15:51:06 +00:00
|
|
|
SupportedMovieSearchParameters = new[] { "q", "imdbid", "imdbtitle", "imdbyear" };
|
2015-10-09 18:57:38 +00:00
|
|
|
SupportsAggregateIdSearch = false;
|
2021-06-29 02:02:09 +00:00
|
|
|
TextSearchEngine = "sphinx"; // This should remain 'sphinx' for older newznab installs
|
|
|
|
MovieTextSearchEngine = "sphinx"; // This should remain 'sphinx' for older newznab installs
|
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; }
|
|
|
|
}
|
|
|
|
}
|