file rename fix

This commit is contained in:
2026-02-22 23:37:01 -05:00
parent 5e1365d689
commit 4a4e9ec774

View File

@@ -6,6 +6,7 @@ Downloads extract audio as MP3 using ffmpeg post-processing.
import asyncio
import re
import shutil
import uuid
from pathlib import Path
from typing import Any
@@ -154,7 +155,7 @@ async def _run_download(
_jobs[job_id]["error"] = "Converted file not found — is ffmpeg installed?"
return
temp_mp3.rename(final_path)
shutil.move(str(temp_mp3), str(final_path))
# Write ID3 tags + embed album art
_jobs[job_id]["status"] = "tagging"