This commit is contained in:
2025-01-14 07:45:34 -05:00
parent ff04602954
commit 7a63b6525d
7 changed files with 22 additions and 9 deletions

View File

@ -123,7 +123,9 @@ class LyricSearch(FastAPI):
aggregate_search = aggregate.Aggregate()
result = await aggregate_search.search(data.a, data.s)
return result.dict()
result = result.dict()
result['lyrics'] = regex.sub(r'(\s/\s|\n)', '<br>', result['lyrics']).strip()
return result