From dbe10382fdd07f1c535e168b9a1304a22ea3d4c6 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 17 Apr 2024 17:09:36 -0500 Subject: [PATCH] Update:Podcast episode downloader only takes audio streams #2858 --- server/utils/ffmpegHelpers.js | 3 ++- server/utils/fileUtils.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/utils/ffmpegHelpers.js b/server/utils/ffmpegHelpers.js index aa0b4805..40968465 100644 --- a/server/utils/ffmpegHelpers.js +++ b/server/utils/ffmpegHelpers.js @@ -104,7 +104,8 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => { const ffmpeg = Ffmpeg(response.data) ffmpeg.addOption('-loglevel debug') // Debug logs printed on error ffmpeg.outputOptions( - '-c', 'copy', + '-c:a', 'copy', + '-map', '0:a', '-metadata', 'podcast=1' ) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 1fc161c7..a4a97f63 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -59,7 +59,7 @@ async function getFileTimestampsWithIno(path) { ino: String(stat.ino) } } catch (err) { - Logger.error('[fileUtils] Failed to getFileTimestampsWithIno', err) + Logger.error(`[fileUtils] Failed to getFileTimestampsWithIno for path "${path}"`, err) return false } }