Book.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using MediaBrowser.Model.Configuration;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Entities
  4. {
  5. public class Book : BaseItem, IHasTags
  6. {
  7. public override string MediaType
  8. {
  9. get
  10. {
  11. return Model.Entities.MediaType.Book;
  12. }
  13. }
  14. /// <summary>
  15. /// Gets or sets the tags.
  16. /// </summary>
  17. /// <value>The tags.</value>
  18. public List<string> Tags { get; set; }
  19. public string SeriesName { get; set; }
  20. /// <summary>
  21. ///
  22. /// </summary>
  23. public override string MetaLocation
  24. {
  25. get
  26. {
  27. return System.IO.Path.GetDirectoryName(Path);
  28. }
  29. }
  30. protected override bool UseParentPathToCreateResolveArgs
  31. {
  32. get
  33. {
  34. return !IsInMixedFolder;
  35. }
  36. }
  37. public Book()
  38. {
  39. Tags = new List<string>();
  40. }
  41. protected override bool GetBlockUnratedValue(UserConfiguration config)
  42. {
  43. return config.BlockUnratedBooks;
  44. }
  45. }
  46. }