add config.dbm_supported

This commit is contained in:
panni
2017-05-26 03:20:19 +02:00
parent 19740ae6c2
commit af8ea6934b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ def ValidatePrefs():
for attr in [
"app_support_path", "data_path", "data_items_path", "enable_agent",
"enable_channel", "permissions_ok", "missing_permissions", "fs_encoding", "enforce_encoding",
"subtitle_destination_folder"]:
"subtitle_destination_folder", "dbm_supported"]:
Log.Debug("config.%s: %s", attr, getattr(config, attr))
for attr in ["plugin_log_path", "server_log_path"]:
+3
View File
@@ -52,6 +52,7 @@ class Config(object):
universal_plex_token = None
plex_token = None
is_development = False
dbm_supported = False
enable_channel = True
enable_agent = True
@@ -148,6 +149,7 @@ class Config(object):
use_fallback_cache = True
names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm']
defaultmod = None
self.dbm_supported = False
if impawrt:
for name in names:
@@ -164,6 +166,7 @@ class Config(object):
arguments={'filename': os.path.join(config.data_items_path, 'subzero.dbm'),
'lock_factory': MutexLock})
use_fallback_cache = False
self.dbm_supported = True
Log.Info("Using file based cache!")
except:
pass