From 75f80e7778201e15da8cdb0a804d980ac20e8034 Mon Sep 17 00:00:00 2001 From: Mitch Downey Date: Sat, 11 May 2024 23:09:42 -0500 Subject: [PATCH] Fix transcript parsing for Add by RSS podcasts #2174 --- src/services/parser.ts | 1 + src/state/actions/player.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/parser.ts b/src/services/parser.ts index 1997acf0c..a71bc3932 100644 --- a/src/services/parser.ts +++ b/src/services/parser.ts @@ -419,6 +419,7 @@ export const parseAddByRSSPodcast = async (feedUrl: string, credentials?: string episode.soundbite = parsedEpisode.soundbite episode.subtitle = parsedEpisode.subtitle && parsedEpisode.subtitle.trim() episode.title = parsedEpisode.title && parsedEpisode.title.trim() + episode.transcript = parsedEpisode.transcript episode.value = parsedEpisode.value if (parsedEpisode.mediaType && parsedEpisode.mediaType.indexOf('video') >= 0) { diff --git a/src/state/actions/player.ts b/src/state/actions/player.ts index 37b240417..7b6dd076b 100644 --- a/src/state/actions/player.ts +++ b/src/state/actions/player.ts @@ -428,7 +428,7 @@ const enrichParsedTranscript = (item: NowPlayingItem) => { try { if (item?.episodeTranscript && item.episodeTranscript[0] && item.episodeTranscript[0].url) { let parsedTranscript = null - if (item?.episodeId) { + if (item?.episodeId && !item.addByRSSPodcastFeedUrl) { parsedTranscript = await getEpisodeProxyTranscript(item.episodeId) } else { parsedTranscript = await getParsedTranscript(item.episodeTranscript[0].url)