Skip to content

Commit

Permalink
fixed xbmc button always returning success
Browse files Browse the repository at this point in the history
  • Loading branch information
lad1337 committed Dec 5, 2011
1 parent 3c8df49 commit 4d62e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/webserve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ def testXBMC(self, host=None, username=None, password=None):
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"

result = notifiers.xbmc_notifier.test_notify(urllib.unquote_plus(host), username, password)
if result:
if len(result.split(":")) > 2 and 'OK' in result.split(":")[2]:
return "Test notice sent successfully to "+urllib.unquote_plus(host)
else:
return "Test notice failed to "+urllib.unquote_plus(host)
Expand Down

0 comments on commit 4d62e1a

Please sign in to comment.