IPathManager.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Model.Dto;
  3. namespace MediaBrowser.Controller.IO;
  4. /// <summary>
  5. /// Interface ITrickplayManager.
  6. /// </summary>
  7. public interface IPathManager
  8. {
  9. /// <summary>
  10. /// Gets the path to the trickplay image base folder.
  11. /// </summary>
  12. /// <param name="item">The item.</param>
  13. /// <param name="saveWithMedia">Whether or not the tile should be saved next to the media file.</param>
  14. /// <returns>The absolute path.</returns>
  15. public string GetTrickplayDirectory(BaseItem item, bool saveWithMedia = false);
  16. /// <summary>
  17. /// Gets the path to the subtitle file.
  18. /// </summary>
  19. /// <param name="mediaSourceId">The media source id.</param>
  20. /// <param name="streamIndex">The stream index.</param>
  21. /// <param name="extension">The subtitle file extension.</param>
  22. /// <returns>The absolute path.</returns>
  23. public string GetSubtitlePath(string mediaSourceId, int streamIndex, string extension);
  24. /// <summary>
  25. /// Gets the path to the subtitle file.
  26. /// </summary>
  27. /// <param name="mediaSourceId">The media source id.</param>
  28. /// <returns>The absolute path.</returns>
  29. public string GetSubtitleFolderPath(string mediaSourceId);
  30. /// <summary>
  31. /// Gets the path to the attachment file.
  32. /// </summary>
  33. /// <param name="mediaSourceId">The media source id.</param>
  34. /// <param name="fileName">The attachmentFileName index.</param>
  35. /// <returns>The absolute path.</returns>
  36. public string GetAttachmentPath(string mediaSourceId, string fileName);
  37. /// <summary>
  38. /// Gets the path to the attachment folder.
  39. /// </summary>
  40. /// <param name="mediaSourceId">The media source id.</param>
  41. /// <returns>The absolute path.</returns>
  42. public string GetAttachmentFolderPath(string mediaSourceId);
  43. }