diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-08 23:52:52 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-08 23:52:52 -0500 |
| commit | 60e2fd4d44ef5dcdcf2ce011bb79b55c148f1259 (patch) | |
| tree | e328c1b080b339c12a6c1fd7a8e8eff8081f865c /MediaBrowser.Controller/Entities/Book.cs | |
| parent | f29469c9056faf361ce7c6f6dc7909af4c3b3edc (diff) | |
support mcm episodes
Diffstat (limited to 'MediaBrowser.Controller/Entities/Book.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Book.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.cs index 85cf60c52..0405fc484 100644 --- a/MediaBrowser.Controller/Entities/Book.cs +++ b/MediaBrowser.Controller/Entities/Book.cs @@ -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; } } } |
