Get rid of low powered device option
This commit is contained in:
parent
4925864a61
commit
4c53cfdb5b
4 changed files with 5 additions and 19 deletions
|
@ -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
|
||||
# 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)
|
||||
|
||||
def __init__(self, queue):
|
||||
self.queue = queue
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
<setting id="syncEmptyShows" type="bool" label="30508" default="false" visible="false"/>
|
||||
<setting id="dbSyncIndicator" label="30507" type="bool" default="true" /><!-- show syncing progress -->
|
||||
<setting type="sep" />
|
||||
<setting id="low_powered_device" type="bool" label="30543" default="true" /> <!-- Installation on low-powered device? (e.g. Raspberry Pi) -->
|
||||
<setting id="syncThreadNumber" type="slider" label="39003" default="10" option="int" range="1,1,20"/><!-- Limit download sync threads (recommended for rpi: 1) -->
|
||||
<setting id="limitindex" type="number" label="30515" default="200" option="int" /><!-- Maximum items to request from the server at once -->
|
||||
<setting type="lsep" label="39052" /><!-- Background Sync -->
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue