BasePluginFolder.cs 878 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma warning disable CS1591
  2. using System.Text.Json.Serialization;
  3. using Jellyfin.Data.Enums;
  4. namespace MediaBrowser.Controller.Entities
  5. {
  6. /// <summary>
  7. /// Plugins derive from and export this class to create a folder that will appear in the root along
  8. /// with all the other actual physical folders in the system.
  9. /// </summary>
  10. public abstract class BasePluginFolder : Folder, ICollectionFolder
  11. {
  12. [JsonIgnore]
  13. public virtual CollectionType? CollectionType => null;
  14. [JsonIgnore]
  15. public override bool SupportsInheritedParentImages => false;
  16. [JsonIgnore]
  17. public override bool SupportsPeople => false;
  18. public override bool CanDelete()
  19. {
  20. return false;
  21. }
  22. public override bool IsSaveLocalMetadataEnabled()
  23. {
  24. return true;
  25. }
  26. }
  27. }