add route to save folder as playlist

+ modify playlist table sql
This commit is contained in:
mungai-njoroge
2023-07-27 13:37:07 +03:00
parent d4a1a6ee1a
commit a0c51d5f82
6 changed files with 124 additions and 44 deletions
+1
View File
@@ -55,6 +55,7 @@ def save_p_image(file, pid: str):
Saves a playlist banner image and returns the filepath.
"""
img = Image.open(file)
random_str = "".join(random.choices(string.ascii_letters + string.digits, k=5))