mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-20 00:33:36 +00:00
Add plugin index report client
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user