From 9fc352a5a44d7ea005f96b5b5abb995eaaa9d329 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 9 Jul 2023 15:50:40 -0500 Subject: [PATCH] Fix:Download episode from rss feed with very long description #1893 --- server/utils/ffmpegHelpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/utils/ffmpegHelpers.js b/server/utils/ffmpegHelpers.js index 9cde93b1..3e4848f3 100644 --- a/server/utils/ffmpegHelpers.js +++ b/server/utils/ffmpegHelpers.js @@ -137,6 +137,10 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => { for (const tag in taggings) { if (taggings[tag]) { + if (taggings[tag].length > 10000) { + Logger.warn(`[ffmpegHelpers] Episode download tag "${tag}" is too long (${taggings[tag].length} characters) - trimming it down`) + taggings[tag] = taggings[tag].slice(0, 10000) + } ffmpeg.addOption('-metadata', `${tag}=${taggings[tag]}`) } }