using MediaBrowser.Controller.Library; using System.Collections.Generic; namespace MediaBrowser.Controller.Entities.Audio { public interface IHasAlbumArtist { List AlbumArtists { get; set; } } public interface IHasArtist { List AllArtists { get; } List Artists { get; set; } } public static class HasArtistExtensions { public static bool HasArtist(this IHasArtist hasArtist, string artist) { return NameExtensions.EqualsAny(hasArtist.Artists, artist); } public static bool HasAnyArtist(this IHasArtist hasArtist, string artist) { return NameExtensions.EqualsAny(hasArtist.AllArtists, artist); } } }