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 xbmcaddon
|
||||
from xml.dom.minidom import parse
|
||||
import utils
|
||||
|
||||
settings = {}
|
||||
try:
|
||||
|
@ -21,13 +22,8 @@ def getGUI(name):
|
|||
addon = xbmcaddon.Addon()
|
||||
plexbmc = xbmcaddon.Addon('plugin.video.plexkodiconnect')
|
||||
|
||||
if plexbmc.getSetting('logLevel') == '2' or \
|
||||
plexbmc.getSetting('logLevel') == '1':
|
||||
settings['debug'] = 'true'
|
||||
settings['gdm_debug'] = 'true'
|
||||
else:
|
||||
settings['debug'] = 'false'
|
||||
settings['gdm_debug'] = 'false'
|
||||
settings['debug'] = utils.settings('companionDebugging')
|
||||
settings['gdm_debug'] = utils.settings('companionGDMDebugging')
|
||||
|
||||
settings['client_name'] = plexbmc.getSetting('deviceName')
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<!-- Primary address -->
|
||||
<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="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 label="Sync Options">
|
||||
|
@ -84,5 +84,7 @@
|
|||
<category label="Plex Companion">
|
||||
<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="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>
|
||||
</settings>
|
||||
|
|
Loading…
Reference in a new issue