|
|
|
@ -482,7 +482,14 @@ namespace MediaBrowser.Api.LiveTv
|
|
|
|
|
[Authenticated(AllowBeforeStartupWizard = true)]
|
|
|
|
|
public class GetSatIniMappings : IReturn<List<NameValuePair>>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Route("/LiveTv/TunerHosts/Satip/ChannelScan", "GET", Summary = "Scans for available channels")]
|
|
|
|
|
[Authenticated(AllowBeforeStartupWizard = true)]
|
|
|
|
|
public class GetSatChannnelScanResult : TunerHostInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class LiveTvService : BaseApiService
|
|
|
|
@ -504,6 +511,13 @@ namespace MediaBrowser.Api.LiveTv
|
|
|
|
|
_dtoService = dtoService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<object> Get(GetSatChannnelScanResult request)
|
|
|
|
|
{
|
|
|
|
|
var result = await _liveTvManager.GetSatChannelScanResult(request, CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
return ToOptimizedResult(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<object> Get(GetLiveTvRegistrationInfo request)
|
|
|
|
|
{
|
|
|
|
|
var result = await _liveTvManager.GetRegistrationInfo(request.ChannelId, request.ProgramId, request.Feature).ConfigureAwait(false);
|
|
|
|
|