@ -50,7 +50,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
private List < Guid > _channelIdList = new List < Guid > ( ) ;
private List < Guid > _channelIdList = new List < Guid > ( ) ;
private Dictionary < Guid , LiveTvProgram > _programs = new Dictionary < Guid , LiveTvProgram > ( ) ;
private Dictionary < Guid , LiveTvProgram > _programs = new Dictionary < Guid , LiveTvProgram > ( ) ;
public LiveTvManager ( IServerConfigurationManager config , IFileSystem fileSystem , ILogger logger , IItemRepository itemRepo , IImageProcessor imageProcessor , IUserDataManager userDataManager , IDtoService dtoService , IUserManager userManager , ILibraryManager libraryManager , IMediaEncoder mediaEncoder )
public LiveTvManager ( IServerConfigurationManager config , IFileSystem fileSystem , ILogger logger , IItemRepository itemRepo , IImageProcessor imageProcessor , IUserDataManager userDataManager , IDtoService dtoService , IUserManager userManager , ILibraryManager libraryManager , IMediaEncoder mediaEncoder , ITaskManager taskManager )
{
{
_config = config ;
_config = config ;
_fileSystem = fileSystem ;
_fileSystem = fileSystem ;
@ -59,6 +59,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
_userManager = userManager ;
_userManager = userManager ;
_libraryManager = libraryManager ;
_libraryManager = libraryManager ;
_mediaEncoder = mediaEncoder ;
_mediaEncoder = mediaEncoder ;
_taskManager = taskManager ;
_userDataManager = userDataManager ;
_userDataManager = userDataManager ;
_tvDtoService = new LiveTvDtoService ( dtoService , userDataManager , imageProcessor , logger , _itemRepo ) ;
_tvDtoService = new LiveTvDtoService ( dtoService , userDataManager , imageProcessor , logger , _itemRepo ) ;
@ -780,12 +781,18 @@ namespace MediaBrowser.Server.Implementations.LiveTv
recordings = recordings . Where ( i = > GetRecordingGroupIds ( i ) . Contains ( guid ) ) ;
recordings = recordings . Where ( i = > GetRecordingGroupIds ( i ) . Contains ( guid ) ) ;
}
}
if ( query . Is Recording . HasValue )
if ( query . Is InProgress . HasValue )
{
{
var val = query . Is Recording . Value ;
var val = query . Is InProgress . Value ;
recordings = recordings . Where ( i = > ( i . Status = = RecordingStatus . InProgress ) = = val ) ;
recordings = recordings . Where ( i = > ( i . Status = = RecordingStatus . InProgress ) = = val ) ;
}
}
if ( query . Status . HasValue )
{
var val = query . Status . Value ;
recordings = recordings . Where ( i = > ( i . Status = = val ) ) ;
}
if ( ! string . IsNullOrEmpty ( query . SeriesTimerId ) )
if ( ! string . IsNullOrEmpty ( query . SeriesTimerId ) )
{
{
var guid = new Guid ( query . SeriesTimerId ) ;
var guid = new Guid ( query . SeriesTimerId ) ;