From 0ac49c0e4ecbf1c5b2520e1198bc34e6e699d2a2 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 5 Mar 2024 08:48:40 -0700 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index 3154bde..1420857 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -99,18 +99,15 @@ def appendLine(result): @app.get("/asr") @app.get("/emby") @app.get("/detect-language") +@app.get("/tautulli") @app.get("/") def handle_get_request(request: Request): - return "You accessed this request incorrectly via a GET request. See https://github.com/McCloudS/subgen for proper configuration" + return {"You accessed this request incorrectly via a GET request. See https://github.com/McCloudS/subgen for proper configuration"} @app.get("/status") def status(): return {"version" : f"Subgen {subgen_version}, stable-ts {stable_whisper.__version__}, whisper {whisper.__version__}"} -@app.post("/webhook") -async def print_warning(): - return {"*** This is the legacy webhook. You need to update to webhook urls to end in plex, tautulli, emby, or jellyfin instead of webhook. ***"} - @app.post("/tautulli") def receive_tautulli_webhook( source: Union[str, None] = Header(None),