XBMC Notification fix

This commit is contained in:
Ruud
2011-10-08 13:33:52 +02:00
parent 9e1646835a
commit 577deb2453
+1 -1
View File
@@ -22,7 +22,7 @@ class XBMC(Notification):
url = 'http://%s/xbmcCmds/xbmcHttp/?%s' % (host, urllib.urlencode(command))
headers = {}
if self.password:
if self.conf('password'):
headers = {
'Authorization': "Basic %s" % base64.encodestring('%s:%s' % (self.conf('username'), self.conf('password')))[:-1]
}