added recording progress bars

This commit is contained in:
Luke Pulverenti
2014-01-14 15:24:56 -05:00
parent f4b890f163
commit e9a5bb699e
7 changed files with 22 additions and 69 deletions

View File

@@ -231,6 +231,18 @@ namespace MediaBrowser.Server.Implementations.LiveTv
}).ToList()
};
if (info.Status == RecordingStatus.InProgress)
{
var now = DateTime.UtcNow.Ticks;
var start = info.StartDate.Ticks;
var end = info.EndDate.Ticks;
var pct = now - start;
pct /= end;
pct *= 100;
dto.CompletionPercentage = pct;
}
var imageTag = GetImageTag(recording);
if (imageTag.HasValue)