From 144b54b526ae32be2f8dbec126688c9e2645c095 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:37:22 -0600 Subject: [PATCH] Fixed plex webhook --- subgen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgen.py b/subgen.py index f90fb6e..6436c2d 100644 --- a/subgen.py +++ b/subgen.py @@ -299,8 +299,8 @@ def receive_tautulli_webhook( @app.post("/plex") def receive_plex_webhook( - user_agent: Optional[str] = Header(None), - payload: Optional[str] = Form(), + user_agent: Union[str] = Header(None), + payload: Union[str] = Form(), ): try: plex_json = json.loads(payload)