add search functions to JukeboxSearch

This commit is contained in:
2024-03-01 21:24:37 -06:00
parent 4561b1c1a3
commit aadb6ba24d
2 changed files with 55 additions and 7 deletions

View File

@@ -235,7 +235,7 @@ def flatten(tables):
print("\"" + keyname + "\":", "\"" + str(out[fullkeyname]) + "\",")
# if the item has at least two commas in it, split it
if tables[table][key].count(',') >= 2:
if tables[table][key].count(',') > 0:
out[fullkeyname] = list(map(lambda x: x.strip(), tables[table][key].split(",")))
print("\"" + keyname + "\":", "\"" + str(out[fullkeyname]) + "\",")