mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-20 00:57:16 +00:00
added recording progress bars
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user