rewrite api/artist.py to remove artist cache

+ remove processing taylor's version
This commit is contained in:
mungai-njoroge
2023-09-23 18:57:19 +03:00
parent ad88ab4adb
commit f2addf4d0f
8 changed files with 49 additions and 207 deletions
+8
View File
@@ -0,0 +1,8 @@
def handle_unicode(string: str):
"""
Try resolving unicode characters, else escape them.
"""
return string.encode("utf-16", "replace").decode("utf-16")
# try:
# except:
# return string.encode("unicode_escape").decode("utf-8")