From b59139dfaf5e4e032db77bb179ced6f17b9fb4d3 Mon Sep 17 00:00:00 2001 From: bluebamus Date: Mon, 22 Dec 2025 19:03:42 +0900 Subject: [PATCH] =?UTF-8?q?=EB=85=B8=EB=9E=98=20=EB=8B=A4=EC=9A=B4?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EC=99=84=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/song/api/routers/v1/song.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/song/api/routers/v1/song.py b/app/song/api/routers/v1/song.py index 9bc2154..6912b78 100644 --- a/app/song/api/routers/v1/song.py +++ b/app/song/api/routers/v1/song.py @@ -321,7 +321,8 @@ async def download_song( response = await client.get(stream_audio_url, timeout=60.0) response.raise_for_status() - async with aiofiles.open(file_path, "wb") as f: + # aiofiles는 Path 객체를 문자열로 변환하여 사용 + async with aiofiles.open(str(file_path), "wb") as f: await f.write(response.content) # 프론트엔드에서 접근 가능한 URL 생성