|
|
@ -19,6 +19,7 @@ class Webhooks:
|
|
|
|
logger.debug("")
|
|
|
|
logger.debug("")
|
|
|
|
logger.debug(f"JSON: {json}")
|
|
|
|
logger.debug(f"JSON: {json}")
|
|
|
|
for webhook in list(set(webhooks)):
|
|
|
|
for webhook in list(set(webhooks)):
|
|
|
|
|
|
|
|
response = None
|
|
|
|
if self.config.trace_mode:
|
|
|
|
if self.config.trace_mode:
|
|
|
|
logger.debug(f"Webhook: {webhook}")
|
|
|
|
logger.debug(f"Webhook: {webhook}")
|
|
|
|
if webhook == "notifiarr":
|
|
|
|
if webhook == "notifiarr":
|
|
|
@ -30,6 +31,7 @@ class Webhooks:
|
|
|
|
break
|
|
|
|
break
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
response = self.config.post(webhook, json=json)
|
|
|
|
response = self.config.post(webhook, json=json)
|
|
|
|
|
|
|
|
if response:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
response_json = response.json()
|
|
|
|
response_json = response.json()
|
|
|
|
if self.config.trace_mode:
|
|
|
|
if self.config.trace_mode:
|
|
|
|