Remove imageCacheLimit and cap on thread-number

This commit is contained in:
tomkat83 2016-09-17 15:20:43 +02:00
parent 25a6d82022
commit 1ff7970e88
3 changed files with 2 additions and 6 deletions

View file

@ -620,10 +620,10 @@ class PlexAPI():
args=(PMS, queue))
threadQueue.append(t)
maxThreads = int(settings('imageCacheLimit'))
maxThreads = 5
threads = []
# poke PMS, own thread for each PMS
while(True):
while True:
# Remove finished threads
for t in threads:
if not t.isAlive():

View file

@ -466,9 +466,6 @@ class InitialSetup():
# Is your Kodi installed on a low-powered device like a Raspberry Pi?
# If yes, then we will reduce the strain on Kodi to prevent it from
# crashing.
if dialog.yesno(heading=addonName, line1=lang(39072)):
log.debug('User thinks that PKC runs on a raspi or similar')
settings('imageCacheLimit', value='1')
# Make sure that we only ask these questions upon first installation
settings('InstallQuestionsAnswered', value='true')

View file

@ -39,7 +39,6 @@
<setting type="sep" /><!-- show syncing progress -->
<setting id="limitindex" type="number" label="30515" default="200" option="int" /><!-- Maximum items to request from the server at once -->
<setting id="enableTextureCache" label="30512" type="bool" default="true" /> <!-- Force Artwork Caching -->
<setting id="imageCacheLimit" type="enum" label="30513" values="Disabled|5|10|15|20|25" default="5" visible="eq(-1,true)" subsetting="true" /> <!-- Limit artwork cache threads -->
<setting id="serverSync" type="bool" label="30514" default="true" visible="false"/><!-- Enable fast startup (requires server plugin) -->
<setting type="lsep" label="39052" /><!-- Background Sync -->