2013-12-26 17:53:23 +01:00
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
using System.Collections.Generic;
|
2013-12-06 04:39:44 +01:00
|
|
|
|
|
2013-08-31 01:54:49 +02:00
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
2013-12-27 01:23:58 +01:00
|
|
|
|
public class Book : BaseItem, IHasTags, IHasPreferredMetadataLanguage
|
2013-08-31 01:54:49 +02:00
|
|
|
|
{
|
|
|
|
|
public override string MediaType
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Model.Entities.MediaType.Book;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-12-27 01:23:58 +01:00
|
|
|
|
|
2013-12-06 04:39:44 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the tags.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The tags.</value>
|
|
|
|
|
public List<string> Tags { get; set; }
|
2013-08-31 01:54:49 +02:00
|
|
|
|
|
|
|
|
|
public string SeriesName { get; set; }
|
|
|
|
|
|
2013-12-27 01:23:58 +01:00
|
|
|
|
public string PreferredMetadataLanguage { get; set; }
|
|
|
|
|
|
2013-08-31 01:54:49 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override string MetaLocation
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return System.IO.Path.GetDirectoryName(Path);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override bool UseParentPathToCreateResolveArgs
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return !IsInMixedFolder;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-12-06 04:39:44 +01:00
|
|
|
|
|
|
|
|
|
public Book()
|
|
|
|
|
{
|
|
|
|
|
Tags = new List<string>();
|
|
|
|
|
}
|
2013-12-26 17:53:23 +01:00
|
|
|
|
|
|
|
|
|
protected override bool GetBlockUnratedValue(UserConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
return config.BlockUnratedBooks;
|
|
|
|
|
}
|
2013-08-31 01:54:49 +02:00
|
|
|
|
}
|
|
|
|
|
}
|