PhotoAlbum.cs 719 B

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