Private GIT

Skip to content
Snippets Groups Projects
Commit 4d62e1ab authored by Dennis Lutter's avatar Dennis Lutter
Browse files

fixed xbmc button always returning success

parent 3c8df499
Branches
Tags
No related merge requests found
......@@ -1918,7 +1918,7 @@ class Home:
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)
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment