Add plugin index report client

This commit is contained in:
Sleeps
2026-10-07 13:53:41 +01:00
parent 1fd0eb9687
commit de4180f9aa
@@ -97,6 +97,30 @@ public sealed class SceneSearchClient : IDisposable
content: null, content: null,
cancellationToken); cancellationToken);
public Task<SceneSearchIndexReportResponse?> GetIndexReportAsync(
string? category,
int offset,
int limit,
CancellationToken cancellationToken)
{
var path = string.Concat(
"/api/jellyfin/index/report?offset=",
Math.Max(offset, 0).ToString(System.Globalization.CultureInfo.InvariantCulture),
"&limit=",
Math.Clamp(limit, 1, 1000).ToString(System.Globalization.CultureInfo.InvariantCulture));
if (!string.IsNullOrWhiteSpace(category))
{
path += "&category=" + Uri.EscapeDataString(category);
}
return SendAsync<SceneSearchIndexReportResponse>(
HttpMethod.Get,
path,
content: null,
cancellationToken);
}
public Task<SceneSearchCaptionStatus?> StartCaptionAsync( public Task<SceneSearchCaptionStatus?> StartCaptionAsync(
SceneSearchCaptionRequest request, SceneSearchCaptionRequest request,
CancellationToken cancellationToken) CancellationToken cancellationToken)