mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Expose caption stop API
This commit is contained in:
@@ -264,6 +264,17 @@ def caption_resume() -> dict:
|
||||
raise HTTPException(status_code=409, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@app.post(
|
||||
"/api/caption/stop",
|
||||
dependencies=[Depends(require_api_key)],
|
||||
)
|
||||
def caption_stop() -> dict:
|
||||
try:
|
||||
return get_caption_jobs().stop()
|
||||
except RuntimeError as exc:
|
||||
raise HTTPException(status_code=409, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@app.get(
|
||||
"/api/frames/{frame_id}/thumbnail",
|
||||
dependencies=[Depends(require_api_key)],
|
||||
|
||||
Reference in New Issue
Block a user