From 0bb1cf002d18746b167c177c5a814fa0f5645b6c Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 17 Apr 2023 17:03:58 -0500 Subject: [PATCH] Fix:Crash when podcasts put empty spaces with episode file path in RSS feed #1650 --- server/utils/podcastUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/utils/podcastUtils.js b/server/utils/podcastUtils.js index 553ad7d1..58200349 100644 --- a/server/utils/podcastUtils.js +++ b/server/utils/podcastUtils.js @@ -85,6 +85,8 @@ function extractEpisodeData(item) { } } + episode.enclosure.url = episode.enclosure.url.trim() + // Full description with html if (item['content:encoded']) { const rawDescription = (extractFirstArrayItem(item, 'content:encoded') || '').trim()