diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs index 830b0e6f5..7e1020ac4 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs @@ -113,7 +113,7 @@ namespace NzbDrone.Core.Indexers.Definitions }, MusicSearchParams = new List { - MusicSearchParam.Q + MusicSearchParam.Q, MusicSearchParam.Artist, MusicSearchParam.Album, MusicSearchParam.Year }, BookSearchParams = new List { @@ -209,6 +209,24 @@ namespace NzbDrone.Core.Indexers.Definitions } } + if (searchType == "music" && searchCriteria is MusicSearchCriteria musicSearchCriteria) + { + if (musicSearchCriteria.Artist.IsNotNullOrWhiteSpace() && musicSearchCriteria.Artist != "VA") + { + parameters.Set("artistnames", musicSearchCriteria.Artist); + } + + if (musicSearchCriteria.Album.IsNotNullOrWhiteSpace()) + { + parameters.Set("groupname", musicSearchCriteria.Album); + } + + if (musicSearchCriteria.Year is > 0) + { + parameters.Set("year", musicSearchCriteria.Year.ToString()); + } + } + var queryCats = _capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories); if (queryCats.Any())