Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ async def download_spotify_track(
|
|
103 |
raise HTTPException(status_code=500, detail="File not found after download")
|
104 |
|
105 |
# Schedule cleanup after response is sent
|
106 |
-
background_tasks.add_task(cleanup_dir, download_dir)
|
107 |
|
108 |
# Return path with unique directory
|
109 |
relative_path = quote(str(filepath.relative_to(downloads_dir)))
|
|
|
103 |
raise HTTPException(status_code=500, detail="File not found after download")
|
104 |
|
105 |
# Schedule cleanup after response is sent
|
106 |
+
#background_tasks.add_task(cleanup_dir, download_dir)
|
107 |
|
108 |
# Return path with unique directory
|
109 |
relative_path = quote(str(filepath.relative_to(downloads_dir)))
|