notifiarr update

This commit is contained in:
meisnate12 2021-12-17 21:24:19 -05:00
parent a484f0e7ea
commit 203ee10ca9
2 changed files with 2 additions and 2 deletions

View file

@ -27,5 +27,5 @@ class Notifiarr:
url = f"{dev_url if self.develop else base_url}{'notification/test' if self.test else f'{path}{self.apikey}'}"
if self.config.trace_mode:
logger.debug(url.replace(self.apikey, "APIKEY"))
params = {"event": "pmm" if self.test else "collections"}
params = {"event": "pmm"} if self.test else None
return url, params

View file

@ -22,7 +22,7 @@ class Webhooks:
if self.config.trace_mode:
logger.debug(f"Webhook: {webhook}")
if webhook == "notifiarr":
url, params = self.notifiarr.get_url("notification/plex/")
url, params = self.notifiarr.get_url("notification/pmm/")
for x in range(6):
response = self.config.get(url, json=json, params=params)
if response.status_code < 500: