Book.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using MediaBrowser.Model.Configuration;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Entities
  4. {
  5. public class Book : BaseItem, IHasTags, IHasPreferredMetadataLanguage
  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. public string PreferredMetadataLanguage { get; set; }
  21. /// <summary>
  22. /// Gets or sets the preferred metadata country code.
  23. /// </summary>
  24. /// <value>The preferred metadata country code.</value>
  25. public string PreferredMetadataCountryCode { get; set; }
  26. /// <summary>
  27. ///
  28. /// </summary>
  29. public override string MetaLocation
  30. {
  31. get
  32. {
  33. return System.IO.Path.GetDirectoryName(Path);
  34. }
  35. }
  36. protected override bool UseParentPathToCreateResolveArgs
  37. {
  38. get
  39. {
  40. return !IsInMixedFolder;
  41. }
  42. }
  43. public Book()
  44. {
  45. Tags = new List<string>();
  46. }
  47. protected override bool GetBlockUnratedValue(UserConfiguration config)
  48. {
  49. return config.BlockUnratedBooks;
  50. }
  51. }
  52. }