Ask on first run if we have a low powered device

And then reduce the thread number accordingly
This commit is contained in:
tomkat83 2016-06-02 21:33:26 +02:00
parent 531957bd14
commit aaa6d9c4d5
3 changed files with 12 additions and 0 deletions

View file

@ -417,6 +417,7 @@
<string id="39069">Current address:</string>
<string id="39070">Current port:</string>
<string id="39071">Current plex.tv status:</string>
<string id="39072">Is your Kodi installed on a low-powered device like a raspberry pie? If yes, then we will reduce the strain on Kodi to prevent it from crashing.</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Log-out Plex Home User </string>

View file

@ -355,6 +355,8 @@
<string id="39068">[COLOR yellow]Plex Media Server Adresse manuell eingeben[/COLOR]</string>
<string id="39069">Aktuelle Adresse:</string>
<string id="39070">Aktueller Port:</string>
<string id="39071">Aktueller plex.tv Status:</string>
<string id="39072">Läuft Kodi auf einem Raspberry Pie oder ähnlichem Computer mit äusserst wenig Rechenleistung? Falls ja, wird die Rechenlast reduziert, damit Kodi nicht abstürzt.</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Plex Home Benutzer abmelden: </string>

View file

@ -474,6 +474,15 @@ class InitialSetup():
self.logMsg("User opted to use FanArtTV", 1)
utils.settings('FanartTV', value="true")
# Is your Kodi installed on a low-powered device like a raspberry pie?
# If yes, then we will reduce the strain on Kodi to prevent it from
# crashing.
if dialog.yesno(heading=self.addonName,
line1=string(39072)):
self.logMsg('User thinks that PKC runs on a raspi or similar', 1)
utils.settings('imageCacheLimit', value='1')
utils.settings('syncThreadNumber', value='1')
# Make sure that we only ask these questions upon first installation
utils.settings('InstallQuestionsAnswered', value='true')