BasePluginFolder.cs 993 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Text.Json.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. [JsonIgnore]
  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. [JsonIgnore]
  21. public override bool SupportsInheritedParentImages => false;
  22. [JsonIgnore]
  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. }