mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Update subgen.py
This commit is contained in:
1 parent
c4357ab0d1
commit
facacd5008
1 file changed
+4
-1
+4
-1
@@ -47,9 +47,12 @@ def receive_webhook():
|
|||||||
metadata = payload.get("Metadata")
|
metadata = payload.get("Metadata")
|
||||||
ratingkey = metadata.get("ratingKey")
|
ratingkey = metadata.get("ratingKey")
|
||||||
fullpath = get_file_name(ratingkey, plexserver, plextoken)
|
fullpath = get_file_name(ratingkey, plexserver, plextoken)
|
||||||
else:
|
elif event == "added" or event == "played":
|
||||||
print("Tautulli webhook received!")
|
print("Tautulli webhook received!")
|
||||||
fullpath = payload.get("file")
|
fullpath = payload.get("file")
|
||||||
|
else:
|
||||||
|
print("Didn't get a webhook we expected, discarding")
|
||||||
|
return ""
|
||||||
|
|
||||||
filename = pathlib.Path(fullpath).name
|
filename = pathlib.Path(fullpath).name
|
||||||
filepath = os.path.dirname(fullpath)
|
filepath = os.path.dirname(fullpath)
|
||||||
|
|||||||
Reference in new issue
Block a user