diff --git a/server/utils/ffmpegHelpers.js b/server/utils/ffmpegHelpers.js index b82f9784..9cde93b1 100644 --- a/server/utils/ffmpegHelpers.js +++ b/server/utils/ffmpegHelpers.js @@ -95,7 +95,12 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => { method: 'GET', responseType: 'stream', timeout: 30000 + }).catch((error) => { + Logger.error(`[ffmpegHelpers] Failed to download podcast episode with url "${podcastEpisodeDownload.url}"`, error) + return null }) + if (!response) return resolve(false) + const ffmpeg = Ffmpeg(response.data) ffmpeg.outputOptions(