configure to allow updating artist separators

+ remove ampersand from default
+ misc
This commit is contained in:
mungai-njoroge
2023-08-25 20:09:50 +03:00
parent 71cab5f5ea
commit 9972f64e8c
7 changed files with 20 additions and 10 deletions
+13 -4
View File
@@ -208,9 +208,18 @@ def set_setting():
sdb.set_setting(key, value)
if mapp[key] is not False:
flag = mapp[key]
set_flag(flag, value)
reload_all_for_set_setting()
flag = mapp[key]
if key == "artist_separators":
value = str(value).split(",")
value = set(value)
set_flag(flag, value)
reload_all_for_set_setting()
# if value is a set, convert it to a string
# (artist_separators)
if type(value) == set:
value = ",".join(value)
return {"result": value}