Skip to content

Commit

Permalink
Fix transcript parsing for Add by RSS podcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdowney committed May 12, 2024
1 parent 62a875b commit 75f80e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/state/actions/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75f80e7

Please sign in to comment.