|
|
|
@ -1752,7 +1752,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
|
|
|
|
|
public async Task AddInfoToProgramDto(List<Tuple<BaseItem, BaseItemDto>> tuples, List<ItemFields> fields, User user = null)
|
|
|
|
|
{
|
|
|
|
|
var recordingTuples = new List<Tuple<BaseItemDto, string, string, string>>();
|
|
|
|
|
var programTuples = new List<Tuple<BaseItemDto, string, string, string>>();
|
|
|
|
|
|
|
|
|
|
foreach (var tuple in tuples)
|
|
|
|
|
{
|
|
|
|
@ -1812,18 +1812,17 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var service = GetService(program);
|
|
|
|
|
var serviceName = service == null ? null : service.Name;
|
|
|
|
|
var serviceName = program.ServiceName;
|
|
|
|
|
|
|
|
|
|
if (fields.Contains(ItemFields.ServiceName))
|
|
|
|
|
{
|
|
|
|
|
dto.ServiceName = serviceName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
recordingTuples.Add(new Tuple<BaseItemDto, string, string, string>(dto, serviceName, program.ExternalId, program.ExternalSeriesIdLegacy));
|
|
|
|
|
programTuples.Add(new Tuple<BaseItemDto, string, string, string>(dto, serviceName, program.ExternalId, program.ExternalSeriesIdLegacy));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await AddRecordingInfo(recordingTuples, CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
await AddRecordingInfo(programTuples, CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddInfoToRecordingDto(BaseItem item, BaseItemDto dto, User user = null)
|
|
|
|
|