Skip to content

Commit

Permalink
fixes transcript parts being hidden (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbos authored Jul 8, 2024
1 parent f54905f commit 0a11f9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/transcript/Transcript.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
export let show: Show;
const slim_transcript: SlimUtterance[] = getSlimUtterances(transcript.utterances, 1)
.filter((utterance) => utterance.speakerId !== 99)
// .filter((utterance) => utterance.speakerId !== 99)
.filter((utterance) => {
// Remove the flagging utterances
const scott = new RegExp(/purple cheese before meeting/gi);
Expand Down
6 changes: 3 additions & 3 deletions src/server/transcripts/transcripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function save_transcript_to_db(show: Show, utterances: Utterance[])
punctuated_word: word.punctuated_word || word.word,
word: word.word,
speaker_confidence: word.confidence,
speaker: word.speaker || 99,
speaker: word.speaker ?? 99,
confidence: word.confidence
};
});
Expand All @@ -33,8 +33,8 @@ export async function save_transcript_to_db(show: Show, utterances: Utterance[])
transcript_value: utterance.transcript,
channel: utterance.channel,
confidence: utterance.confidence,
speaker: utterance.speaker || 99,
speakerName: speakerMap.get(utterance.speaker || 99),
speaker: utterance.speaker ?? 99,
speakerName: speakerMap.get(utterance.speaker ?? 99),
words: {
create: words
}
Expand Down

0 comments on commit 0a11f9e

Please sign in to comment.