BasePluginFolder.cs 1013 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using MediaBrowser.Model.Serialization;
  2. namespace MediaBrowser.Controller.Entities
  3. {
  4. /// <summary>
  5. /// Plugins derive from and export this class to create a folder that will appear in the root along
  6. /// with all the other actual physical folders in the system.
  7. /// </summary>
  8. public abstract class BasePluginFolder : Folder, ICollectionFolder
  9. {
  10. [IgnoreDataMember]
  11. public virtual string CollectionType => null;
  12. public override bool CanDelete()
  13. {
  14. return false;
  15. }
  16. public override bool IsSaveLocalMetadataEnabled()
  17. {
  18. return true;
  19. }
  20. [IgnoreDataMember]
  21. public override bool SupportsInheritedParentImages => false;
  22. [IgnoreDataMember]
  23. public override bool SupportsPeople => false;
  24. //public override double? GetDefaultPrimaryImageAspectRatio()
  25. //{
  26. // double value = 16;
  27. // value /= 9;
  28. // return value;
  29. //}
  30. }
  31. }