LiveTvAudioRecording.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using MediaBrowser.Controller.Entities.Audio;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Controller.LiveTv
  4. {
  5. public class LiveTvAudioRecording : Audio, ILiveTvRecording
  6. {
  7. /// <summary>
  8. /// Gets the user data key.
  9. /// </summary>
  10. /// <returns>System.String.</returns>
  11. public override string GetUserDataKey()
  12. {
  13. return GetClientTypeName() + "-" + Name;
  14. }
  15. public RecordingInfo RecordingInfo { get; set; }
  16. public string ServiceName { get; set; }
  17. public override string MediaType
  18. {
  19. get
  20. {
  21. return Model.Entities.MediaType.Audio;
  22. }
  23. }
  24. public override LocationType LocationType
  25. {
  26. get
  27. {
  28. if (!string.IsNullOrEmpty(Path))
  29. {
  30. return base.LocationType;
  31. }
  32. return LocationType.Remote;
  33. }
  34. }
  35. public override string GetClientTypeName()
  36. {
  37. return "Recording";
  38. }
  39. public override bool IsSaveLocalMetadataEnabled()
  40. {
  41. return false;
  42. }
  43. }
  44. }