Update app.py
Browse files
app.py
CHANGED
@@ -123,6 +123,9 @@ def download_track(request: DownloadRequest):
|
|
123 |
|
124 |
if not filepath:
|
125 |
raise HTTPException(status_code=500, detail=f"{file_extension} file not found after download")
|
|
|
|
|
|
|
126 |
|
127 |
# Return the download URL
|
128 |
relative_path = os.path.relpath(filepath, "downloads")
|
|
|
123 |
|
124 |
if not filepath:
|
125 |
raise HTTPException(status_code=500, detail=f"{file_extension} file not found after download")
|
126 |
+
if filepath:
|
127 |
+
file_size = os.path.getsize(filepath)
|
128 |
+
logger.info(f"Downloaded file size: {file_size} bytes")
|
129 |
|
130 |
# Return the download URL
|
131 |
relative_path = os.path.relpath(filepath, "downloads")
|