From 4c53cfdb5b7977b016f549e35a07272b5f47be14 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 17 Dec 2016 16:43:25 +0100 Subject: [PATCH] Get rid of low powered device option --- resources/lib/artwork.py | 10 +++------- resources/lib/initialsetup.py | 9 --------- resources/settings.xml | 1 - service.py | 4 ++-- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 7c789bce..db7aa97e 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -131,13 +131,9 @@ class Image_Cache_Thread(Thread): xbmc_host = 'localhost' xbmc_port, xbmc_username, xbmc_password = setKodiWebServerDetails() sleep_between = 50 - if settings('low_powered_device') == 'true': - # Low CPU, potentially issues with limited number of threads - # Hence let Kodi wait till download is successful - timeout = (35.1, 35.1) - else: - # High CPU, no issue with limited number of threads - timeout = (0.01, 0.01) + # Potentially issues with limited number of threads + # Hence let Kodi wait till download is successful + timeout = (35.1, 35.1) def __init__(self, queue): self.queue = queue diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index ad7dc95e..d93dc3d1 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -433,15 +433,6 @@ class InitialSetup(): if settings('InstallQuestionsAnswered') == 'true': return - # 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)): - settings('low_powered_device', value="true") - settings('syncThreadNumber', value="1") - else: - settings('low_powered_device', value="false") - # Additional settings where the user needs to choose # Direct paths (\\NAS\mymovie.mkv) or addon (http)? goToSettings = False diff --git a/resources/settings.xml b/resources/settings.xml index 087c8fed..c430d838 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -49,7 +49,6 @@ - diff --git a/service.py b/service.py index 638d6a6e..35499474 100644 --- a/service.py +++ b/service.py @@ -86,8 +86,8 @@ class Service(): log.warn("%s Version: %s" % (addonName, self.clientInfo.getVersion())) log.warn("Using plugin paths: %s" % (settings('useDirectPaths') != "true")) - log.warn("Using a low powered device: %s" - % settings('low_powered_device')) + log.warn("Number of sync threads: %s" + % settings('syncThreadNumber')) log.warn("Log Level: %s" % logLevel) # Reset window props for profile switch