mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
notifiarr update
This commit is contained in:
parent
a484f0e7ea
commit
203ee10ca9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue