add route to save folder as playlist

+ modify playlist table sql
This commit is contained in:
mungai-njoroge committed 2023-07-27 13:37:07 +03:00
1 parent d4a1a6ee1a
commit a0c51d5f82
6 files changed
+124 -44

No files matched your search

+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))