aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities
diff options
context:
space:
mode:
authorLuis Miguel Almánzar <ruisu15@gmail.com>2013-08-30 22:05:43 -0400
committerLuis Miguel Almánzar <ruisu15@gmail.com>2013-08-30 22:05:43 -0400
commit744867d1c6e0f352276d8fdd8af241ff88c03494 (patch)
tree085ac433d16fa859f97d7c0c6ae4f42c52f9b0d6 /MediaBrowser.Controller/Entities
parent3f4dd4231d2225ab0d474840038a4de01b5f7391 (diff)
parentae53683d08bc279040b7945c0ea269ff4b9a60e0 (diff)
Merge branch 'master' of github.com:MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Controller/Entities')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs6
-rw-r--r--MediaBrowser.Controller/Entities/Book.cs35
-rw-r--r--MediaBrowser.Controller/Entities/TV/Series.cs6
3 files changed, 47 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 3c8c2411ec..e756d22113 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -23,6 +23,11 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
public abstract class BaseItem : IHasProviderIds
{
+ /// <summary>
+ /// MusicAlbums in the library that are the soundtrack for this item
+ /// </summary>
+ public List<Guid> SoundtrackIds { get; set; }
+
protected BaseItem()
{
Genres = new List<string>();
@@ -38,6 +43,7 @@ namespace MediaBrowser.Controller.Entities
Tags = new List<string>();
ThemeSongIds = new List<Guid>();
ThemeVideoIds = new List<Guid>();
+ SoundtrackIds = new List<Guid>();
LocalTrailerIds = new List<Guid>();
LockedFields = new List<MetadataFields>();
}
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; }
+
+ /// <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/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.cs
index 2458e56193..1e4d56e1a5 100644
--- a/MediaBrowser.Controller/Entities/TV/Series.cs
+++ b/MediaBrowser.Controller/Entities/TV/Series.cs
@@ -13,9 +13,15 @@ namespace MediaBrowser.Controller.Entities.TV
/// </summary>
public class Series : Folder
{
+ public List<Guid> SpecialFeatureIds { get; set; }
+
+ public int SeasonCount { get; set; }
+
public Series()
{
AirDays = new List<DayOfWeek>();
+
+ SpecialFeatureIds = new List<Guid>();
}
/// <summary>