update notifiarr test endpoints

This commit is contained in:
bobokun 2021-12-17 20:00:09 -05:00
parent 4f56e56336
commit d8ab1f25c4
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671

View file

@ -27,5 +27,6 @@ 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": "qbtManage" if self.test else "notify"}
test_payload = (f"qbitManage-{self.apikey[:5]}")
params = {"event": test_payload, "qbit_client":self.config.data["qbt"]["host"] if self.test else "notify"}
return url, params