Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,6 @@ export async function generateContent(hookName: string, podcastId: number, servi
generated_text: shownotesText,
status: 'generated',
generated_at: new Date().toISOString(),
llm_model: 'gemini-3-flash-preview',
prompt_version: '1.0',
})

// Generate social media posts
Expand Down Expand Up @@ -536,8 +534,6 @@ export async function generateContent(hookName: string, podcastId: number, servi
generated_text: socialText,
status: 'generated',
generated_at: new Date().toISOString(),
llm_model: 'gemini-3-flash-preview',
prompt_version: '1.0',
})

logger.info(`${hookName}: ${platform} post generated for podcast ${podcastId}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ export default defineHook(({ action }, hookContext) => {
generated_text: documentHtml,
status: 'generated',
generated_at: new Date().toISOString(),
llm_model: 'template',
prompt_version: '1.0',
})

// Update podcast status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function extractSpeakerNames(transcriptText: string): string[] {

// Pattern 1: Name followed by timestamp in parentheses
// Examples: "Jan Gregor Emge-Triebel (00:12.534)", "Fabi Fink (00:35.735)"
const timestampPattern = /^([A-ZÄÖÜa-zäöüß][A-ZÄÖÜa-zäöüß\-]+(?:\s+[A-ZÄÖÜa-zäöüß][A-ZÄÖÜa-zäöüß\-]+)*)\s+\(\d{2}:\d{2}\.\d+\)/gm
// Use [ \t]+ instead of \s+ to avoid matching across newlines
const timestampPattern = /^([A-ZÄÖÜa-zäöüß][A-ZÄÖÜa-zäöüß\-]+(?:[ \t]+[A-ZÄÖÜa-zäöüß][A-ZÄÖÜa-zäöüß\-]+)*)[ \t]+\(\d{2}:\d{2}\.\d+\)/gm

let match
while ((match = timestampPattern.exec(transcriptText)) !== null) {
Expand Down Expand Up @@ -55,6 +56,7 @@ export function extractSpeakerNames(transcriptText: string): string[] {
* Removes accents, lowercases, normalizes hyphens/spaces, and trims.
*/
function normalize(str: string): string {
if (!str) return ''
return str
.toLowerCase()
.normalize('NFD')
Expand Down Expand Up @@ -130,9 +132,10 @@ export async function matchMembersFromTranscript(
accountability: eventContext.accountability,
})

// Fetch all members
// Fetch non-archived members only
const allMembers: MemberData[] = await membersService.readByQuery({
fields: ['id', 'first_name', 'last_name'],
filter: { status: { _neq: 'archived' } },
limit: -1,
})

Expand Down