Merge pull request #53 from l1231669/fixDownload

[Mediaserver] Arregla el mostrar la config de "Descargas"
This commit is contained in:
Alfa
2017-08-29 15:56:21 -04:00
committed by GitHub

View File

@@ -677,16 +677,17 @@ class platform(Platformtools):
if not "label" in c: continue
# Obtenemos el valor
if not c["id"] in dict_values:
if not callback:
c["value"] = config.get_setting(c["id"], **kwargs)
if "id" in c:
if not c["id"] in dict_values:
if not callback:
c["value"] = config.get_setting(c["id"], **kwargs)
else:
c["value"] = c["default"]
dict_values[c["id"]] = c["value"]
else:
c["value"] = c["default"]
dict_values[c["id"]] = c["value"]
else:
c["value"] = dict_values[c["id"]]
c["value"] = dict_values[c["id"]]
# Translation
if c['label'].startswith('@') and unicode(c['label'][1:]).isnumeric():