|
@@ -439,6 +439,12 @@ namespace MediaBrowser.Api.LiveTv
|
|
public string Id { get; set; }
|
|
public string Id { get; set; }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ [Route("/LiveTv/ListingProviders/Default", "GET")]
|
|
|
|
+ [Authenticated(AllowBeforeStartupWizard = true)]
|
|
|
|
+ public class GetDefaultListingProvider : ListingsProviderInfo, IReturn<ListingsProviderInfo>
|
|
|
|
+ {
|
|
|
|
+ }
|
|
|
|
+
|
|
[Route("/LiveTv/ListingProviders", "POST", Summary = "Adds a listing provider")]
|
|
[Route("/LiveTv/ListingProviders", "POST", Summary = "Adds a listing provider")]
|
|
[Authenticated(AllowBeforeStartupWizard = true)]
|
|
[Authenticated(AllowBeforeStartupWizard = true)]
|
|
public class AddListingProvider : ListingsProviderInfo, IReturn<ListingsProviderInfo>
|
|
public class AddListingProvider : ListingsProviderInfo, IReturn<ListingsProviderInfo>
|
|
@@ -525,6 +531,11 @@ namespace MediaBrowser.Api.LiveTv
|
|
_dtoService = dtoService;
|
|
_dtoService = dtoService;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public object Get(GetDefaultListingProvider request)
|
|
|
|
+ {
|
|
|
|
+ return ToOptimizedResult(new ListingsProviderInfo());
|
|
|
|
+ }
|
|
|
|
+
|
|
public async Task<object> Get(GetSatChannnelScanResult request)
|
|
public async Task<object> Get(GetSatChannnelScanResult request)
|
|
{
|
|
{
|
|
var result = await _liveTvManager.GetSatChannelScanResult(request, CancellationToken.None).ConfigureAwait(false);
|
|
var result = await _liveTvManager.GetSatChannelScanResult(request, CancellationToken.None).ConfigureAwait(false);
|