Skip to content

Commit

Permalink
fix playback start method name typo thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Snapcase committed Jul 24, 2019
1 parent 7a35e35 commit c4447a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions script.service.hue/addon.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="0.7.1">
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="0.7.2">
<requires>
<import addon="xbmc.python" version="2.26.0" />
<import addon="script.module.requests" version="2.22.0" />
<import addon="script.module.pil" />
<!-- <import addon="script.module.pydevd"/> -->
<!-- <import addon="script.module.pydevd"/> -->
</requires>
<extension point="xbmc.service" name="service.hue" library="service.py" />
<extension point="xbmc.python.script" library="menu.py">
Expand Down
3 changes: 2 additions & 1 deletion script.service.hue/resources/lib/KodiGroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ def flash(self):

def onAVStarted(self):
logger.info("In KodiGroup[{}], onPlaybackStarted. Group enabled: {},startBehavior: {} , isPlayingVideo: {}, isPlayingAudio: {}, self.mediaType: {},self.playbackType(): {}".format(self.kgroupID, self.enabled,self.startBehavior, self.isPlayingVideo(),self.isPlayingAudio(),self.mediaType,self.playbackType()))

self.state = STATE_PLAYING
globals.lastMediaType = self.playbackType()
if self.enabled and self.checkActiveTime() and self.startBehavior and self.mediaType == self.playbackType:
if self.enabled and self.checkActiveTime() and self.startBehavior and self.mediaType == self.playbackType():
if self.mediaType == VIDEO and not self.checkVideoActivation():
return
try:
Expand Down
16 changes: 7 additions & 9 deletions script.service.hue/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@
<setting type="lsep" label="30521" />
<setting id="group3_enabled" type="bool" label="30520" default="false" />

<!-- Group playback start setting -->

<setting id="group3_SelectLights" type="action" label="30015" action="RunScript(script.service.hue,ambiLightSelect,3)" visible="eq(-1,true)" option="close" />
<setting id="group3_LightNames" type="text" label="30058" default="-1" enable="false" visible="eq(-2,true)"/>
<setting id="group3_Lights" type="text" label="30035" default="-1" enable="false" visible="false" />
Expand All @@ -93,15 +91,15 @@

<setting type="lsep" label="30062" visible="eq(-7,true)"/>
<setting id="group3_BlackFilter" type="slider" label="30060" default="1" range="1,1,50" option="int" visible="eq(-8,true)"/>
<setting id="group3_DefaultRecipe" type="enum" label="30063" lvalues="30800|30801|30802|30803|30804|30805|30806|30807|30808" visible="eq(-10,true)"/>
<setting id="group3_DefaultRecipe" type="enum" label="30063" lvalues="30800|30801|30802|30803|30804|30805|30806|30807|30808" visible="eq(-9,true)"/>

<setting type="sep" visible="eq(-11,true)"/>
<setting type="lsep" label="30522" visible="eq(-12,true)"/>
<setting id="group3_NumColors" type="slider" label="30064" default="1" range="1,1,5" option="int" visible="eq(-13,true)"/>
<setting id="group3_Interval" type="slider" label="30065" default="100" range="0,100,1000" option="int" visible="eq(-14,true)" />
<setting id="group3_TransitionTime" type="slider" label="30066" default="100" range="0,100,500" option="int" visible="eq(-15,true)"/>
<setting id="group3_CaptureSize" type="slider" label="30067" default="150" range="50,50,500" option="int" visible="eq(-16,true)"/>
<setting id="group3_ColorDifference" type="slider" label="Minimum colour difference" default="100" range="0,1,10000" option="int" visible="eq(-17,true)"/>
<setting type="lsep" label="30522" visible="eq(-11,true)"/>
<setting id="group3_NumColors" type="slider" label="30064" default="1" range="1,1,5" option="int" visible="eq(-12,true)"/>
<setting id="group3_Interval" type="slider" label="30065" default="100" range="0,100,1000" option="int" visible="eq(-13,true)" />
<setting id="group3_TransitionTime" type="slider" label="30066" default="100" range="0,100,500" option="int" visible="eq(-14,true)"/>
<setting id="group3_CaptureSize" type="slider" label="30067" default="150" range="50,50,500" option="int" visible="eq(-15,true)"/>
<setting id="group3_ColorDifference" type="slider" label="Minimum colour difference" default="100" range="0,1,10000" option="int" visible="eq(-16,true)"/>

</category>
<!-- /GROUP SECTION 0-->
Expand Down
2 changes: 1 addition & 1 deletion script.service.hue/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if globals.DEBUG:
try:
import pydevd
pydevd.settrace('192.168.1.15', stdoutToServer=True, stderrToServer=True, suspend=False,
pydevd.settrace('localhost', stdoutToServer=True, stderrToServer=True, suspend=False,
trace_only_current_thread=False, overwrite_prev_trace=False, patch_multiprocessing=False)
except ImportError:
logger.exception("Kodi Hue Remote Debug Error: You must add org.python.pydev.debug.pysrc to your PYTHONPATH, or disable DEBUG")
Expand Down

0 comments on commit c4447a2

Please sign in to comment.