|
|
@ -1,6 +1,4 @@
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Entities.Audio
|
|
|
|
namespace MediaBrowser.Controller.Entities.Audio
|
|
|
@ -53,35 +51,6 @@ namespace MediaBrowser.Controller.Entities.Audio
|
|
|
|
get { return Parent as MusicArtist ?? UnknwonArtist; }
|
|
|
|
get { return Parent as MusicArtist ?? UnknwonArtist; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets or sets the images.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <value>The images.</value>
|
|
|
|
|
|
|
|
public override Dictionary<ImageType, string> Images
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var images = base.Images;
|
|
|
|
|
|
|
|
string primaryImagePath;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!images.TryGetValue(ImageType.Primary, out primaryImagePath))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var image = Children.Select(c => c.PrimaryImagePath).FirstOrDefault(c => !string.IsNullOrEmpty(c));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(image))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
images[ImageType.Primary] = image;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return images;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
base.Images = value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether the specified artist has artist.
|
|
|
|
/// Determines whether the specified artist has artist.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|