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