You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
using System.Collections.Generic;
|
|
|
|
namespace NzbDrone.Core.Indexers.Newznab;
|
|
|
|
public class NewznabCapabilitiesSettings
|
|
{
|
|
public bool SupportsRawSearch { get; set; }
|
|
|
|
public List<SearchParam> SearchParams { get; set; }
|
|
|
|
public List<TvSearchParam> TvSearchParams { get; set; }
|
|
|
|
public List<MovieSearchParam> MovieSearchParams { get; set; }
|
|
|
|
public List<MusicSearchParam> MusicSearchParams { get; set; }
|
|
|
|
public List<BookSearchParam> BookSearchParams { get; set; }
|
|
|
|
public List<IndexerCategory> Categories { get; set; }
|
|
|
|
public NewznabCapabilitiesSettings()
|
|
{
|
|
}
|
|
|
|
public NewznabCapabilitiesSettings(IndexerCapabilities capabilities)
|
|
{
|
|
SupportsRawSearch = capabilities?.SupportsRawSearch ?? false;
|
|
SearchParams = capabilities?.SearchParams;
|
|
TvSearchParams = capabilities?.TvSearchParams;
|
|
MovieSearchParams = capabilities?.MovieSearchParams;
|
|
MusicSearchParams = capabilities?.MusicSearchParams;
|
|
BookSearchParams = capabilities?.BookSearchParams;
|
|
Categories = capabilities?.Categories.GetTorznabCategoryList();
|
|
}
|
|
}
|