mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Add plugin caption pause and resume client calls
This commit is contained in:
@@ -105,6 +105,22 @@ public sealed class SceneSearchClient : IDisposable
|
||||
content: null,
|
||||
cancellationToken);
|
||||
|
||||
public Task<SceneSearchCaptionStatus?> PauseCaptionAsync(
|
||||
CancellationToken cancellationToken)
|
||||
=> SendAsync<SceneSearchCaptionStatus>(
|
||||
HttpMethod.Post,
|
||||
"/api/caption/pause",
|
||||
content: null,
|
||||
cancellationToken);
|
||||
|
||||
public Task<SceneSearchCaptionStatus?> ResumeCaptionAsync(
|
||||
CancellationToken cancellationToken)
|
||||
=> SendAsync<SceneSearchCaptionStatus>(
|
||||
HttpMethod.Post,
|
||||
"/api/caption/resume",
|
||||
content: null,
|
||||
cancellationToken);
|
||||
|
||||
private async Task<T?> SendAsync<T>(
|
||||
HttpMethod method,
|
||||
string path,
|
||||
|
||||
Reference in New Issue
Block a user