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