|
|
|
@ -25,6 +25,8 @@ namespace MediaBrowser.Api
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Item Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ExcludeArtistNames { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BaseGetSimilarItems : IReturn<ItemsResult>, IHasItemFields
|
|
|
|
@ -70,6 +72,12 @@ namespace MediaBrowser.Api
|
|
|
|
|
Recursive = true
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// ExcludeArtistNames
|
|
|
|
|
if (!string.IsNullOrEmpty(request.ExcludeArtistNames))
|
|
|
|
|
{
|
|
|
|
|
query.ExcludeArtistNames = request.ExcludeArtistNames.Split('|');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var inputItems = libraryManager.GetItemList(query);
|
|
|
|
|
|
|
|
|
|
var items = GetSimilaritems(item, libraryManager, inputItems, getSimilarityScore)
|
|
|
|
|