Permalink
Browse files

Bugfix

  • Loading branch information...
1 parent 79918e9 commit 88b48d75bcb55a0284a155572a0ac87c0e3cf15b @tszczerba tszczerba committed Jun 7, 2014
Showing with 9 additions and 9 deletions.
  1. +8 −8 addon.py
  2. +1 −1 addon.xml
View
@@ -52,20 +52,20 @@
'silver': 'DDDDDD',
'gray': 'AAAAAA'}
-if (__settings__.getSetting('customColor') == 'false'):
- if os.uname()[1] == "raspbmc":
- hyperion = "hyperion-remote --color "
- elif os.uname()[1] == "OpenELEC":
- hyperion = "/storage/hyperion/bin/hyperion-remote.sh --color "
- else :
- hyperion = "hyperion-remote --color "
+if os.uname()[1] == "raspbmc":
+ hyperion = "hyperion-remote --color "
+elif os.uname()[1] == "OpenELEC":
+ hyperion = "/storage/hyperion/bin/hyperion-remote.sh --color "
+else :
+ hyperion = "hyperion-remote --color "
+if (__settings__.getSetting('customColor') == 'false'):
command = hyperion + colors[__settings__.getSetting('constColor')]
else:
R = int(float(__settings__.getSetting('customColorR')))
G = int(float(__settings__.getSetting('customColorG')))
B = int(float(__settings__.getSetting('customColorB')))
- command = "hyperion-remote --color " + '{:02x}{:02x}{:02x}'.format(R, G, B)
+ command = hyperion + '{:02x}{:02x}{:02x}'.format(R, G, B)
subprocess.check_call(command, shell=True)
View
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.service.hyperion-const"
name="Hyperion Constant"
- version="1.0.2"
+ version="1.0.3"
provider-name="lightberry.eu">
<requires>
<import addon="xbmc.python" version="2.1.0"/>

0 comments on commit 88b48d7

Please sign in to comment.