@ -186,6 +186,9 @@ namespace MediaBrowser.Api.LiveTv
[ApiMember(Name = "IsMovie", Description = "Optional filter for movies.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET,POST")]
[ApiMember(Name = "IsMovie", Description = "Optional filter for movies.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET,POST")]
public bool? IsMovie { get ; set ; }
public bool? IsMovie { get ; set ; }
[ApiMember(Name = "IsSports", Description = "Optional filter for sports.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET,POST")]
public bool? IsSports { get ; set ; }
[ApiMember(Name = "StartIndex", Description = "Optional. The record index to start at. All items with a lower index will be dropped from the results.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
[ApiMember(Name = "StartIndex", Description = "Optional. The record index to start at. All items with a lower index will be dropped from the results.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
public int? StartIndex { get ; set ; }
public int? StartIndex { get ; set ; }
@ -218,6 +221,9 @@ namespace MediaBrowser.Api.LiveTv
[ApiMember(Name = "HasAired", Description = "Optional. Filter by programs that have completed airing, or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
[ApiMember(Name = "HasAired", Description = "Optional. Filter by programs that have completed airing, or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
public bool? HasAired { get ; set ; }
public bool? HasAired { get ; set ; }
[ApiMember(Name = "IsSports", Description = "Optional filter for sports.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET,POST")]
public bool? IsSports { get ; set ; }
[ApiMember(Name = "IsMovie", Description = "Optional filter for movies.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
[ApiMember(Name = "IsMovie", Description = "Optional filter for movies.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
public bool? IsMovie { get ; set ; }
public bool? IsMovie { get ; set ; }
}
}
@ -422,6 +428,7 @@ namespace MediaBrowser.Api.LiveTv
query . SortBy = ( request . SortBy ? ? String . Empty ) . Split ( new [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries ) ;
query . SortBy = ( request . SortBy ? ? String . Empty ) . Split ( new [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries ) ;
query . SortOrder = request . SortOrder ;
query . SortOrder = request . SortOrder ;
query . IsMovie = request . IsMovie ;
query . IsMovie = request . IsMovie ;
query . IsSports = request . IsSports ;
query . Genres = ( request . Genres ? ? String . Empty ) . Split ( new [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries ) ;
query . Genres = ( request . Genres ? ? String . Empty ) . Split ( new [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries ) ;
var result = await _liveTvManager . GetPrograms ( query , CancellationToken . None ) . ConfigureAwait ( false ) ;
var result = await _liveTvManager . GetPrograms ( query , CancellationToken . None ) . ConfigureAwait ( false ) ;
@ -437,7 +444,8 @@ namespace MediaBrowser.Api.LiveTv
IsAiring = request . IsAiring ,
IsAiring = request . IsAiring ,
Limit = request . Limit ,
Limit = request . Limit ,
HasAired = request . HasAired ,
HasAired = request . HasAired ,
IsMovie = request . IsMovie
IsMovie = request . IsMovie ,
IsSports = request . IsSports
} ;
} ;
var result = await _liveTvManager . GetRecommendedPrograms ( query , CancellationToken . None ) . ConfigureAwait ( false ) ;
var result = await _liveTvManager . GetRecommendedPrograms ( query , CancellationToken . None ) . ConfigureAwait ( false ) ;