From d0f3262ba3afbe33aaf97e6744764485a9ef44f6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 30 Aug 2013 19:54:49 -0400 Subject: [PATCH] Added Book --- MediaBrowser.Controller/Entities/Book.cs | 35 +++++++++++++++++++ .../MediaBrowser.Controller.csproj | 1 + 2 files changed, 36 insertions(+) create mode 100644 MediaBrowser.Controller/Entities/Book.cs diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.cs new file mode 100644 index 0000000000..20df731a78 --- /dev/null +++ b/MediaBrowser.Controller/Entities/Book.cs @@ -0,0 +1,35 @@ + +namespace MediaBrowser.Controller.Entities +{ + public class Book : BaseItem + { + public override string MediaType + { + get + { + return Model.Entities.MediaType.Book; + } + } + + public string SeriesName { get; set; } + + /// + /// + /// + public override string MetaLocation + { + get + { + return System.IO.Path.GetDirectoryName(Path); + } + } + + protected override bool UseParentPathToCreateResolveArgs + { + get + { + return !IsInMixedFolder; + } + } + } +} diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index bbc73d0ad7..e0e8b78e19 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -72,6 +72,7 @@ Properties\SharedVersion.cs +