pull/420/head
meisnate12 3 years ago
parent eee977f9cb
commit f93ed6a1b9

@ -42,7 +42,7 @@ class NotifiarrBase:
class NotifiarrFactory(NotifiarrBase): class NotifiarrFactory(NotifiarrBase):
def __init__(self, config, params): def __init__(self, config, params):
super().__init__(config, params["apikey"], params["develop"], params["test"], params["error_notification"]) super().__init__(config, params["apikey"], params["develop"], params["test"], params["error_notification"])
if not params["test"] and not self._request("user/validate/")["message"]["response"]: if not params["test"] and not self._request("user/validate/")["details"]["response"]:
raise Failed("Notifiarr Error: Invalid apikey") raise Failed("Notifiarr Error: Invalid apikey")
def getNotifiarr(self, library): def getNotifiarr(self, library):

Loading…
Cancel
Save