PhotoAlbum.cs 855 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using MediaBrowser.Controller.Providers;
  2. using MediaBrowser.Model.Configuration;
  3. using MediaBrowser.Model.Users;
  4. using System;
  5. using System.Linq;
  6. using System.Runtime.Serialization;
  7. using System.Threading;
  8. using System.Threading.Tasks;
  9. namespace MediaBrowser.Controller.Entities
  10. {
  11. public class PhotoAlbum : Folder
  12. {
  13. [IgnoreDataMember]
  14. public override bool SupportsLocalMetadata
  15. {
  16. get
  17. {
  18. return false;
  19. }
  20. }
  21. [IgnoreDataMember]
  22. public override bool AlwaysScanInternalMetadataPath
  23. {
  24. get
  25. {
  26. return true;
  27. }
  28. }
  29. protected override bool GetBlockUnratedValue(UserPolicy config)
  30. {
  31. return config.BlockUnratedItems.Contains(UnratedItem.Other);
  32. }
  33. }
  34. }