From bf65929535261fee9ba766cfd850a1f4f583578e Mon Sep 17 00:00:00 2001 From: Sleeps Date: Wed, 7 Oct 2026 11:42:56 +0100 Subject: [PATCH] Add caption controls to plugin client --- .../SceneSearchClient.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/SceneSearchClient.cs b/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/SceneSearchClient.cs index 974db8d..a70a29e 100644 --- a/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/SceneSearchClient.cs +++ b/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/SceneSearchClient.cs @@ -88,6 +88,23 @@ public sealed class SceneSearchClient : IDisposable content: null, cancellationToken); + public Task StartCaptionAsync( + SceneSearchCaptionRequest request, + CancellationToken cancellationToken) + => SendAsync( + HttpMethod.Post, + "/api/caption", + JsonContent.Create(request), + cancellationToken); + + public Task GetCaptionStatusAsync( + CancellationToken cancellationToken) + => SendAsync( + HttpMethod.Get, + "/api/caption/status", + content: null, + cancellationToken); + private async Task SendAsync( HttpMethod method, string path,