Book.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. ///
  23. /// </summary>
  24. public override string MetaLocation
  25. {
  26. get
  27. {
  28. return System.IO.Path.GetDirectoryName(Path);
  29. }
  30. }
  31. protected override bool UseParentPathToCreateResolveArgs
  32. {
  33. get
  34. {
  35. return !IsInMixedFolder;
  36. }
  37. }
  38. public Book()
  39. {
  40. Tags = new List<string>();
  41. }
  42. protected override bool GetBlockUnratedValue(UserConfiguration config)
  43. {
  44. return config.BlockUnratedBooks;
  45. }
  46. }
  47. }