mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-01 14:26:40 +01:00
restored live tv playback in the web client
This commit is contained in:
@@ -222,13 +222,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
RunTimeTicks = (info.EndDate - info.StartDate).Ticks,
|
||||
OriginalAirDate = info.OriginalAirDate,
|
||||
|
||||
MediaStreams = _itemRepo.GetMediaStreams(new MediaStreamQuery
|
||||
{
|
||||
ItemId = recording.Id
|
||||
|
||||
}).ToList()
|
||||
MediaSources = _dtoService.GetMediaSources((BaseItem)recording)
|
||||
};
|
||||
|
||||
dto.MediaStreams = dto.MediaSources.SelectMany(i => i.MediaStreams).ToList();
|
||||
|
||||
if (info.Status == RecordingStatus.InProgress)
|
||||
{
|
||||
var now = DateTime.UtcNow.Ticks;
|
||||
@@ -317,7 +315,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
Type = info.GetClientTypeName(),
|
||||
Id = info.Id.ToString("N"),
|
||||
MediaType = info.MediaType,
|
||||
ExternalId = info.ExternalId
|
||||
ExternalId = info.ExternalId,
|
||||
MediaSources = _dtoService.GetMediaSources(info)
|
||||
};
|
||||
|
||||
if (user != null)
|
||||
|
||||
Reference in New Issue
Block a user