parent
43e894ae1f
commit
acfb9d4128
2 changed files with 8 additions and 6 deletions
|
@ -401,12 +401,13 @@ class InitialSetup():
|
|||
dialog = self.dialog
|
||||
|
||||
# Get current Kodi video cache setting
|
||||
try:
|
||||
cache, _ = advancedsettings_xml(['cache', 'memorysize'])
|
||||
if cache is not None:
|
||||
cache = str(cache.text)
|
||||
else:
|
||||
except TypeError:
|
||||
# Kodi default cache
|
||||
cache = '20971520'
|
||||
else:
|
||||
cache = str(cache.text)
|
||||
log.info('Current Kodi video memory cache in bytes: %s' % cache)
|
||||
settings('kodi_video_cache', value=cache)
|
||||
|
||||
|
|
|
@ -21,8 +21,9 @@ def get_current_music_folders():
|
|||
excludefromscan music folders in the advancedsettings.xml
|
||||
"""
|
||||
paths = []
|
||||
try:
|
||||
root, _ = advancedsettings_xml(['audio', 'excludefromscan'])
|
||||
if root is None:
|
||||
except TypeError:
|
||||
return paths
|
||||
|
||||
for element in root:
|
||||
|
|
Loading…
Reference in a new issue