rework active recordings

This commit is contained in:
Luke Pulverenti
2017-08-23 15:45:52 -04:00
parent 82ab91f209
commit afd94407f9
10 changed files with 273 additions and 68 deletions

View File

@@ -411,6 +411,21 @@ namespace Emby.Server.Implementations.Dto
{
liveTvManager.AddInfoToRecordingDto(item, dto, user);
}
else
{
var activeRecording = liveTvManager.GetActiveRecordingInfo(item.Path);
if (activeRecording != null)
{
dto.Type = "Recording";
dto.CanDownload = false;
if (!string.IsNullOrWhiteSpace(dto.SeriesName))
{
dto.EpisodeTitle = dto.Name;
dto.Name = dto.SeriesName;
}
liveTvManager.AddInfoToRecordingDto(item, dto, activeRecording, user);
}
}
return dto;
}