Fixed: (AnimeBytes) Artist and album search improvements

pull/2033/head
Devotee2161 9 months ago committed by Bogdan
parent 099b04f718
commit ab0108778a

@ -113,7 +113,7 @@ namespace NzbDrone.Core.Indexers.Definitions
},
MusicSearchParams = new List<MusicSearchParam>
{
MusicSearchParam.Q
MusicSearchParam.Q, MusicSearchParam.Artist, MusicSearchParam.Album, MusicSearchParam.Year
},
BookSearchParams = new List<BookSearchParam>
{
@ -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())

Loading…
Cancel
Save