This commit is contained in:
tomkat83 2017-12-28 15:24:36 +01:00
parent 02f48dd15f
commit 6e00838ef0

View file

@ -404,12 +404,9 @@ class InitialSetup():
# Get current Kodi video cache setting # Get current Kodi video cache setting
cache, _ = advancedsettings_xml(['cache', 'memorysize']) cache, _ = advancedsettings_xml(['cache', 'memorysize'])
if cache is None: # Kodi default cache if no setting is set
# Kodi default cache cache = str(cache.text) if cache is not None else '20971520'
cache = '20971520' log.info('Current Kodi video memory cache in bytes: %s', cache)
else:
cache = str(cache.text)
log.info('Current Kodi video memory cache in bytes: %s' % cache)
settings('kodi_video_cache', value=cache) settings('kodi_video_cache', value=cache)
# Do we need to migrate stuff? # Do we need to migrate stuff?