Update subgen.py

Fixed processing on new media.
This commit is contained in:
McCloudS authored and GitHub committed 2023-02-01 08:19:34 -07:00
1 parent f6a3c80fc5
commit d710a69954
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ def receive_webhook():
event = payload.get("event")
metadata = payload.get("Metadata")
if (event == "media.add" and procaddedmedia) or (event == "media.play" and procmediaonplay):
if (event == "library.new" and procaddedmedia) or (event == "media.play" and procmediaonplay):
print("Webhook received!")