New setting: I own this PMS
- Needed if someone enters PMS IP manually, would not catch this info otherwise - Background: needed to choose correct background sync procedure
This commit is contained in:
parent
36884c0537
commit
c5b76d1a38
5 changed files with 8 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
<string id="30024">Username</string><!-- Verified -->
|
<string id="30024">Username</string><!-- Verified -->
|
||||||
|
|
||||||
<string id="30030">Port Number</string><!-- Verified -->
|
<string id="30030">Port Number</string><!-- Verified -->
|
||||||
|
<string id="30031">I own this Plex Media Server</string>
|
||||||
<string id="30036">Number of recent Movies to show:</string>
|
<string id="30036">Number of recent Movies to show:</string>
|
||||||
<string id="30037">Number of recent TV episodes to show:</string>
|
<string id="30037">Number of recent TV episodes to show:</string>
|
||||||
<string id="30035">Number of recent Music Albums to show:</string>
|
<string id="30035">Number of recent Music Albums to show:</string>
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
<string id="30026">Benutze 'SIMPLEJSON' anstelle von 'JSON'</string>
|
<string id="30026">Benutze 'SIMPLEJSON' anstelle von 'JSON'</string>
|
||||||
|
|
||||||
<string id="30030">Portnummer:</string>
|
<string id="30030">Portnummer:</string>
|
||||||
|
<string id="30031">Dieser Plex Media Server gehört mir</string>
|
||||||
<string id="30036">Anzahl der zuletzt hinzugefügten Filme:</string>
|
<string id="30036">Anzahl der zuletzt hinzugefügten Filme:</string>
|
||||||
<string id="30037">Anzahl der zuletzt hinzugefügten Episoden:</string>
|
<string id="30037">Anzahl der zuletzt hinzugefügten Episoden:</string>
|
||||||
<string id="30035">Anzahl der zuletzt hinzugefügten Alben:</string>
|
<string id="30035">Anzahl der zuletzt hinzugefügten Alben:</string>
|
||||||
|
|
|
@ -217,7 +217,9 @@ class InitialSetup():
|
||||||
# Write to Kodi settings file
|
# Write to Kodi settings file
|
||||||
utils.settings('plex_machineIdentifier', activeServer)
|
utils.settings('plex_machineIdentifier', activeServer)
|
||||||
utils.settings('plex_servername', server['name'])
|
utils.settings('plex_servername', server['name'])
|
||||||
utils.settings('plex_serverowned', server['owned'])
|
utils.settings('plex_serverowned',
|
||||||
|
'true' if server['owned'] == '1'
|
||||||
|
else 'false')
|
||||||
if server['local'] == '1':
|
if server['local'] == '1':
|
||||||
scheme = server['scheme']
|
scheme = server['scheme']
|
||||||
utils.settings('ipaddress', server['ip'])
|
utils.settings('ipaddress', server['ip'])
|
||||||
|
|
|
@ -1453,7 +1453,7 @@ class LibrarySync(Thread):
|
||||||
sessionKey = item.get('sessionKey')
|
sessionKey = item.get('sessionKey')
|
||||||
# Do we already have a sessionKey stored?
|
# Do we already have a sessionKey stored?
|
||||||
if sessionKey not in self.sessionKeys:
|
if sessionKey not in self.sessionKeys:
|
||||||
if utils.window('plex_serverowned') == '0':
|
if utils.window('plex_serverowned') == 'false':
|
||||||
# Not our PMS, we are not authorized to get the
|
# Not our PMS, we are not authorized to get the
|
||||||
# sessions
|
# sessions
|
||||||
# On the bright side, it must be us playing :-)
|
# On the bright side, it must be us playing :-)
|
||||||
|
@ -1472,7 +1472,7 @@ class LibrarySync(Thread):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
currSess = self.sessionKeys[sessionKey]
|
currSess = self.sessionKeys[sessionKey]
|
||||||
if utils.window('plex_serverowned') != '0':
|
if utils.window('plex_serverowned') != 'false':
|
||||||
# Identify the user - same one as signed on with PKC? Skip
|
# Identify the user - same one as signed on with PKC? Skip
|
||||||
# update if neither session's username nor userid match
|
# update if neither session's username nor userid match
|
||||||
# (Owner sometime's returns id '1', not always)
|
# (Owner sometime's returns id '1', not always)
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<setting label="39050" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect?mode=chooseServer)" option="close" /><!-- Choose Plex Server from a list -->
|
<setting label="39050" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect?mode=chooseServer)" option="close" /><!-- Choose Plex Server from a list -->
|
||||||
<setting id="ipaddress" label="30000" type="text" default="" />
|
<setting id="ipaddress" label="30000" type="text" default="" />
|
||||||
<setting id="port" label="30030" type="number" default="32400" />
|
<setting id="port" label="30030" type="number" default="32400" />
|
||||||
|
<setting id="plex_serverowned" label="30031" type="bool" default="true" /><!-- I own this PMS -->
|
||||||
<setting id="https" label="30243" type="bool" default="false" />
|
<setting id="https" label="30243" type="bool" default="false" />
|
||||||
<setting id="sslverify" subsetting="true" label="30500" type="bool" default="false" visible="eq(-1,true)" />
|
<setting id="sslverify" subsetting="true" label="30500" type="bool" default="false" visible="eq(-1,true)" />
|
||||||
<setting id="sslcert" subsetting="true" label="30501" type="file" default="None" visible="eq(-2,true)" />
|
<setting id="sslcert" subsetting="true" label="30501" type="file" default="None" visible="eq(-2,true)" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue