mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Merge branch 'feature/indexers' of github.com:lidarr/lidarr into feature/indexers
This commit is contained in:
commit
31b13b3336
2 changed files with 2 additions and 9 deletions
|
@ -13,7 +13,6 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
|
||||||
{
|
{
|
||||||
private SingleEpisodeSearchCriteria _singleEpisodeSearchCriteria;
|
private SingleEpisodeSearchCriteria _singleEpisodeSearchCriteria;
|
||||||
private AlbumSearchCriteria _singleAlbumSearchCriteria;
|
private AlbumSearchCriteria _singleAlbumSearchCriteria;
|
||||||
private AnimeEpisodeSearchCriteria _animeSearchCriteria;
|
|
||||||
private NewznabCapabilities _capabilities;
|
private NewznabCapabilities _capabilities;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
|
@ -23,7 +22,6 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
|
||||||
{
|
{
|
||||||
Url = "http://127.0.0.1:1234/",
|
Url = "http://127.0.0.1:1234/",
|
||||||
Categories = new [] { 1, 2 },
|
Categories = new [] { 1, 2 },
|
||||||
//AnimeCategories = new [] { 3, 4 },
|
|
||||||
ApiKey = "abcd",
|
ApiKey = "abcd",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,12 +40,6 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_animeSearchCriteria = new AnimeEpisodeSearchCriteria()
|
|
||||||
{
|
|
||||||
SceneTitles = new List<string>() { "Monkey+Island" },
|
|
||||||
AbsoluteEpisodeNumber = 100
|
|
||||||
};
|
|
||||||
|
|
||||||
_capabilities = new NewznabCapabilities();
|
_capabilities = new NewznabCapabilities();
|
||||||
|
|
||||||
Mocker.GetMock<INewznabCapabilitiesProvider>()
|
Mocker.GetMock<INewznabCapabilitiesProvider>()
|
||||||
|
|
|
@ -107,8 +107,9 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capabilities.SupportedAudioSearchParameters != null &&
|
if (capabilities.SupportedAudioSearchParameters != null &&
|
||||||
new[] {"artist", "album"}.All(v => capabilities.SupportedAudioSearchParameters.Contains(v)))
|
new[] { "artist", "album" }.All(v => capabilities.SupportedAudioSearchParameters.Contains(v)))
|
||||||
{
|
{
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capabilities.SupportedTvSearchParameters != null &&
|
if (capabilities.SupportedTvSearchParameters != null &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue