diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-30 19:54:49 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-30 19:54:49 -0400 |
| commit | d0f3262ba3afbe33aaf97e6744764485a9ef44f6 (patch) | |
| tree | 7b0c2f754c721e78bdc7536af7140657e657edbb | |
| parent | 4c3ceee7a19b5285e65a07f0a0d21a30bbdf256a (diff) | |
Added Book
| -rw-r--r-- | MediaBrowser.Controller/Entities/Book.cs | 35 | ||||
| -rw-r--r-- | MediaBrowser.Controller/MediaBrowser.Controller.csproj | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.cs new file mode 100644 index 000000000..20df731a7 --- /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; } + + /// <summary> + /// + /// </summary> + 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 bbc73d0ad..e0e8b78e1 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -72,6 +72,7 @@ <Link>Properties\SharedVersion.cs</Link> </Compile> <Compile Include="Entities\AdultVideo.cs" /> + <Compile Include="Entities\Book.cs" /> <Compile Include="Notifications\Configuration\IServerConfigurationManager.cs" /> <Compile Include="Dto\SessionInfoDtoBuilder.cs" /> <Compile Include="Entities\Audio\MusicAlbumDisc.cs" /> |
