Add notification for Companion GDM port fail

This commit is contained in:
tomkat83 2017-01-24 11:53:19 +01:00
parent 5046f856ca
commit 11be04ddac
4 changed files with 20 additions and 1 deletions

View file

@ -12,6 +12,8 @@
<string id="30009">Transcode: </string>
<string id="30010">Enable Performance Profiling</string>
<string id="30011">Local caching system</string>
<string id="30012">OK</string>
<string id="30013">Never show</string>
<string id="30014">Connection</string>
<string id="30015">Network</string>
@ -439,6 +441,7 @@
<string id="39076">If you use several Plex libraries of one kind, e.g. "Kids Movies" and "Parents Movies", be sure to check the Wiki: https://goo.gl/JFtQV9</string>
<string id="39077">Number of PMS items to show in widgets (e.g. "On Deck")</string>
<string id="39078">Plex Companion Update Port (change only if needed)</string>
<string id="39079">Plex Companion could not open the GDM port. Please change it in the PKC settings.</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Log-out Plex Home User </string>

View file

@ -12,6 +12,9 @@
<string id="30009">Transkodieren: </string>
<string id="30010">Performancemessung aktivieren</string>
<string id="30011">Caching-Mechanismus</string>
<string id="30012">OK</string>
<string id="30013">Nie anzeigen</string>
<string id="30500">Host SSL Zertifikat überprüfen (sicherer)</string>
<string id="30507">Synchronisations-Fortschritt anzeigen</string>
<string id="30512">Zwischenspeichern von PMS Bildern erzwingen</string>
@ -388,6 +391,7 @@
<string id="39076">Falls du mehrere Plex Bibliotheken einer Art nutzt, z.B. "Filme Kinder" und "Filme Eltern", lies unbedingt das Wiki unter https://goo.gl/JFtQV9</string>
<string id="39077">Anzahl anzuzeigender PMS Einträge in Widgets (z.B. "Aktuell")</string>
<string id="39078">Plex Companion Update Port (nur bei Bedarf ändern)</string>
<string id="39079">Plex Companion konnte den GDM Port nicht öffnen. Bitte den Port in den PKC Einstellungen ändern.</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Plex Home Benutzer abmelden: </string>

View file

@ -29,7 +29,7 @@ import time
from xbmc import sleep
import downloadutils
from utils import window, settings
from utils import window, settings, dialog, language
###############################################################################
@ -107,6 +107,17 @@ class plexgdm:
log.error("Unable to bind to port [%s] - Plex Companion will not "
"be registered. Change the Plex Companion update port!"
% self.client_update_port)
if settings('companion_show_gdm_port_warning') == 'true':
if dialog('yesno',
language(29999),
'Port %s' % self.client_update_port,
language(39079),
yeslabel=language(30013), # Never show again
nolabel=language(30012)): # OK
settings('companion_show_gdm_port_warning', value='false')
from xbmc import executebuiltin
executebuiltin(
'Addon.OpenSettings(plugin.video.plexkodiconnect)')
return
update_sock.setsockopt(socket.IPPROTO_IP,

View file

@ -43,6 +43,7 @@
<setting id="plex_restricteduser" type="bool" default="false" visible="false"/>
<setting id="plex_allows_mediaDeletion" type="bool" default="true" visible="false"/>
<setting id="companion_show_gdm_port_warning" type="bool" default="true" visible="false"/>
</category>
<category label="30506"><!-- Sync Options -->