From 496e9a0fd591e78bae95b7c49bee90e93f8454dc Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 9 Apr 2014 21:10:42 -0700 Subject: [PATCH] Fix for XBMC notification --- headphones/notifiers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/notifiers.py b/headphones/notifiers.py index 27307bef..ff27077f 100644 --- a/headphones/notifiers.py +++ b/headphones/notifiers.py @@ -191,9 +191,9 @@ class XBMC: url = host + '/jsonrpc' if self.password: - response = request.request_json(req, method="POST", data=simplejson.dumps(data), headers=headers, auth=(self.username, self.password)) + response = request.request_json(url, method="POST", data=simplejson.dumps(data), headers=headers, auth=(self.username, self.password)) else: - response = request.request_json(req, method="POST", data=simplejson.dumps(data), headers=headers) + response = request.request_json(url, method="POST", data=simplejson.dumps(data), headers=headers) if response: return response[0]['result']