fixes #857 - Support album subfolders

This commit is contained in:
Luke Pulverenti
2014-06-29 13:58:04 -04:00
parent be5d7641bc
commit b87f759460
2 changed files with 55 additions and 7 deletions

View File

@@ -71,6 +71,23 @@ namespace MediaBrowser.Controller.Entities.Audio
/// <value>The tags.</value>
public List<string> Tags { get; set; }
/// <summary>
/// Gets the tracks.
/// </summary>
/// <value>The tracks.</value>
public IEnumerable<Audio> Tracks
{
get
{
return RecursiveChildren.OfType<Audio>();
}
}
protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
{
return Tracks;
}
/// <summary>
/// Songs will group into us so don't also include us in the index
/// </summary>