mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
configure to allow updating artist separators
+ remove ampersand from default + misc
This commit is contained in:
+13
-4
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user