fix(download): keep .mp3 extension on the ffmpeg tag temp file

ffmpeg infers the muxer from the extension; '.tag' made every download's
tag step fail with 'Unable to choose an output format'.
This commit is contained in:
2026-08-12 11:11:10 -04:00
parent e7ed89056e
commit acbaf2ed1c

View File

@@ -280,7 +280,7 @@ function createDownloadStore() {
feedStore.feeds().find((f) => f.id === item.feedId)?.podcast.title ?? feedStore.feeds().find((f) => f.id === item.feedId)?.podcast.title ??
downloads().get(item.episodeId)?.podcastTitle; downloads().get(item.episodeId)?.podcastTitle;
if (podcastTitle) { if (podcastTitle) {
const tmp = `${result.filePath}.tag`; const tmp = `${result.filePath}.tag.mp3`;
Bun.spawn([ Bun.spawn([
"ffmpeg", "ffmpeg",
"-y", "-y",