mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 11:28:27 +01:00
remove dead interface objects
This commit is contained in:
@@ -1854,23 +1854,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
ParentIndexNumber = program.SeasonNumber.Value,
|
||||
IndexNumber = program.EpisodeNumber.Value,
|
||||
AncestorIds = seriesIds,
|
||||
ExcludeLocationTypes = new[] { LocationType.Virtual }
|
||||
});
|
||||
|
||||
if (result.TotalRecordCount > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(program.EpisodeTitle))
|
||||
{
|
||||
var result = _libraryManager.GetItemsResult(new InternalItemsQuery
|
||||
{
|
||||
IncludeItemTypes = new[] { typeof(Episode).Name },
|
||||
Name = program.EpisodeTitle,
|
||||
AncestorIds = seriesIds,
|
||||
ExcludeLocationTypes = new[] { LocationType.Virtual }
|
||||
IsVirtualItem = false
|
||||
});
|
||||
|
||||
if (result.TotalRecordCount > 0)
|
||||
|
||||
@@ -72,7 +72,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
{
|
||||
dto.ProgramInfo = _dtoService.GetBaseItemDto(program, new DtoOptions());
|
||||
|
||||
dto.ProgramInfo.TimerId = dto.Id;
|
||||
if (info.Status != RecordingStatus.Cancelled && info.Status != RecordingStatus.Error)
|
||||
{
|
||||
dto.ProgramInfo.TimerId = dto.Id;
|
||||
dto.ProgramInfo.Status = info.Status.ToString();
|
||||
}
|
||||
|
||||
dto.ProgramInfo.SeriesTimerId = dto.SeriesTimerId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user