Plex companion logging
This commit is contained in:
parent
0d2664320b
commit
5576ef97ca
2 changed files with 6 additions and 8 deletions
|
@ -2,6 +2,7 @@ import uuid
|
||||||
import xbmc
|
import xbmc
|
||||||
import xbmcaddon
|
import xbmcaddon
|
||||||
from xml.dom.minidom import parse
|
from xml.dom.minidom import parse
|
||||||
|
import utils
|
||||||
|
|
||||||
settings = {}
|
settings = {}
|
||||||
try:
|
try:
|
||||||
|
@ -21,13 +22,8 @@ def getGUI(name):
|
||||||
addon = xbmcaddon.Addon()
|
addon = xbmcaddon.Addon()
|
||||||
plexbmc = xbmcaddon.Addon('plugin.video.plexkodiconnect')
|
plexbmc = xbmcaddon.Addon('plugin.video.plexkodiconnect')
|
||||||
|
|
||||||
if plexbmc.getSetting('logLevel') == '2' or \
|
settings['debug'] = utils.settings('companionDebugging')
|
||||||
plexbmc.getSetting('logLevel') == '1':
|
settings['gdm_debug'] = utils.settings('companionGDMDebugging')
|
||||||
settings['debug'] = 'true'
|
|
||||||
settings['gdm_debug'] = 'true'
|
|
||||||
else:
|
|
||||||
settings['debug'] = 'false'
|
|
||||||
settings['gdm_debug'] = 'false'
|
|
||||||
|
|
||||||
settings['client_name'] = plexbmc.getSetting('deviceName')
|
settings['client_name'] = plexbmc.getSetting('deviceName')
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<!-- Primary address -->
|
<!-- Primary address -->
|
||||||
<setting id="myplexlogin" label="Log into plex.tv?" type="bool" default="true" />
|
<setting id="myplexlogin" label="Log into plex.tv?" type="bool" default="true" />
|
||||||
<setting id="plexLogin" label="plex.tv username" type="text" default="" visible="eq(-1,true)" />
|
<setting id="plexLogin" label="plex.tv username" type="text" default="" visible="eq(-1,true)" />
|
||||||
<setting id="plexhome" label="Plex home in use (don't change this)" type="bool" default="true" />
|
<setting id="plexhome" label="Plex home in use" type="bool" default="true" visible="false" />
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<category label="Sync Options">
|
<category label="Sync Options">
|
||||||
|
@ -84,5 +84,7 @@
|
||||||
<category label="Plex Companion">
|
<category label="Plex Companion">
|
||||||
<setting id="plexCompanion" label="Enable Plex Companion" type="bool" default="true" />
|
<setting id="plexCompanion" label="Enable Plex Companion" type="bool" default="true" />
|
||||||
<setting id="companionPort" label="Plex Companion Port" type="number" default="3005" option="int" visible="eq(-1,true)"/>
|
<setting id="companionPort" label="Plex Companion Port" type="number" default="3005" option="int" visible="eq(-1,true)"/>
|
||||||
|
<setting id="companionDebugging" label="Plex Companion Debugging" type="bool" default="false" visible="eq(-2,true)"/>
|
||||||
|
<setting id="companionGDMDebugging" label="Plex Companion GDM Debugging" type="bool" default="false" visible="eq(-3,true)"/>
|
||||||
</category>
|
</category>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
Loading…
Reference in a new issue