update recording creation

This commit is contained in:
Luke Pulverenti
2016-02-12 13:29:28 -05:00
parent c3cbbcfca8
commit a17f7d89f7
6 changed files with 22 additions and 7 deletions

View File

@@ -395,7 +395,7 @@ namespace MediaBrowser.Server.Implementations.Dto
else if (item is LiveTvProgram)
{
_livetvManager().AddInfoToProgramDto(item, dto, fields.Contains(ItemFields.ChannelInfo), user);
_livetvManager().AddInfoToProgramDto(item, dto, fields, user);
}
return dto;

View File

@@ -845,7 +845,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
{
if (GetConfiguration().EnableRecordingEncoding)
{
var regInfo = await _security.GetRegistrationStatus("embytvseriesrecordings").ConfigureAwait(false);
var regInfo = await _security.GetRegistrationStatus("embytvrecordingconversion").ConfigureAwait(false);
if (regInfo.IsValid)
{

View File

@@ -1467,7 +1467,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
};
}
public void AddInfoToProgramDto(BaseItem item, BaseItemDto dto, bool addChannelInfo, User user = null)
public void AddInfoToProgramDto(BaseItem item, BaseItemDto dto, List<ItemFields> fields, User user = null)
{
var program = (LiveTvProgram)item;
@@ -1507,7 +1507,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
dto.IsPremiere = program.IsPremiere;
}
if (addChannelInfo)
if (fields.Contains(ItemFields.ChannelInfo))
{
var channel = GetInternalChannel(program.ChannelId);
@@ -1522,6 +1522,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv
}
}
}
if (fields.Contains(ItemFields.ServiceName))
{
var service = GetService(program);
if (service != null)
{
dto.ServiceName = service.Name;
}
}
}
public void AddInfoToRecordingDto(BaseItem item, BaseItemDto dto, User user = null)