From 1ff7970e8894028f96b110a1ca64e6a01dff9ba9 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 17 Sep 2016 15:20:43 +0200 Subject: [PATCH] Remove imageCacheLimit and cap on thread-number --- resources/lib/PlexAPI.py | 4 ++-- resources/lib/initialsetup.py | 3 --- resources/settings.xml | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 146c787d..904066e3 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -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(): diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index 3e5a6ff3..0ceab110 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -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') diff --git a/resources/settings.xml b/resources/settings.xml index 6e5624be..ab0990fb 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -39,7 +39,6 @@ -