aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Book.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-28 22:33:10 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-28 22:33:10 -0500
commit5d4682d4185c88332c460021c0ffea26361f291b (patch)
treec50c075899778fb5e5caf6acbafe3cb95059adb8 /MediaBrowser.Controller/Entities/Book.cs
parent2ed5c3d0e7f61534f7a01b8b200aff9115ddb444 (diff)
parent50a16452a99ee5865082c73f2a4e063cb02f6e69 (diff)
Merge branch 'dev' into beta
Diffstat (limited to 'MediaBrowser.Controller/Entities/Book.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Book.cs17
1 files changed, 3 insertions, 14 deletions
diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.cs
index d31675baf..f006fedd2 100644
--- a/MediaBrowser.Controller/Entities/Book.cs
+++ b/MediaBrowser.Controller/Entities/Book.cs
@@ -17,19 +17,8 @@ namespace MediaBrowser.Controller.Entities
}
}
- /// <summary>
- /// Gets or sets the tags.
- /// </summary>
- /// <value>The tags.</value>
- public List<string> Tags { get; set; }
-
public string SeriesName { get; set; }
- public Book()
- {
- Tags = new List<string>();
- }
-
public override bool CanDownload()
{
var locationType = LocationType;
@@ -37,9 +26,9 @@ namespace MediaBrowser.Controller.Entities
locationType != LocationType.Virtual;
}
- protected override bool GetBlockUnratedValue(UserPolicy config)
+ public override UnratedItem GetBlockUnratedType()
{
- return config.BlockUnratedItems.Contains(UnratedItem.Book);
+ return UnratedItem.Book;
}
public BookInfo GetLookupInfo()
@@ -48,7 +37,7 @@ namespace MediaBrowser.Controller.Entities
if (string.IsNullOrEmpty(SeriesName))
{
- info.SeriesName = Parents.Select(i => i.Name).FirstOrDefault();
+ info.SeriesName = GetParents().Select(i => i.Name).FirstOrDefault();
}
else
{