From 93a5ff140fef52ec378ce861d9b05f47af327b25 Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 11:31:08 +0900 Subject: [PATCH] refactor: remove unused isPlaying state and use arrayBuffer --- frontend/src/components/EpisodePlayer.tsx | 1 - server.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/EpisodePlayer.tsx b/frontend/src/components/EpisodePlayer.tsx index 743a99c..460b6ef 100644 --- a/frontend/src/components/EpisodePlayer.tsx +++ b/frontend/src/components/EpisodePlayer.tsx @@ -13,7 +13,6 @@ export default function EpisodePlayer() { const [selectedEpisode, setSelectedEpisode] = useState(null); const [audioUrl, setAudioUrl] = useState(null); const [loading, setLoading] = useState(true); - const [isPlaying, setIsPlaying] = useState(false); const [error, setError] = useState(null); useEffect(() => { diff --git a/server.ts b/server.ts index 2ea1cf8..a7eb14b 100644 --- a/server.ts +++ b/server.ts @@ -82,7 +82,7 @@ app.get("/podcast_audio/*", async (c) => { const audioFilePath = path.join(podcastAudioDir, audioFileName); const file = Bun.file(audioFilePath); if (await file.exists()) { - const blob = await file.blob(); + const blob = await file.arrayBuffer(); return c.body(blob, 200, { "Content-Type": "audio/mpeg" }); } return c.notFound();