support mcm episodes

This commit is contained in:
Luke Pulverenti
2014-02-08 23:52:52 -05:00
parent f29469c905
commit 60e2fd4d44
31 changed files with 132 additions and 64 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Controller.Providers;
using System.Linq;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Configuration;
using System.Collections.Generic;
@@ -42,7 +43,18 @@ namespace MediaBrowser.Controller.Entities
public BookInfo GetLookupInfo()
{
return GetItemLookupInfo<BookInfo>();
var info = GetItemLookupInfo<BookInfo>();
if (string.IsNullOrEmpty(SeriesName))
{
info.SeriesName = Parents.Select(i => i.Name).FirstOrDefault();
}
else
{
info.SeriesName = SeriesName;
}
return info;
}
}
}