From 80cbe44849262f99e9a7cf1bd6b2ad4aac157968 Mon Sep 17 00:00:00 2001 From: Johan Eliasson Date: Thu, 5 Oct 2023 18:09:59 +0200 Subject: [PATCH] skip 'direkt' --- web/src/server/utils/helpers.ts | 2 +- worker/src/2-transcribe.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/server/utils/helpers.ts b/web/src/server/utils/helpers.ts index def0862..94113c2 100644 --- a/web/src/server/utils/helpers.ts +++ b/web/src/server/utils/helpers.ts @@ -27,7 +27,7 @@ export async function searchRkbildPhotos(query: string): Promise { const url = queryString !== 'q=' ? `https://rkbild.se/fotoweb/archives/5000-Bildbank/?${queryString}` - : 'https://rkbild.se/fotoweb/archives/5000-Bildbank/;p=90'; + : 'https://rkbild.se/fotoweb/archives/5000-Bildbank/;p=97'; const headers = queryString !== 'q=' diff --git a/worker/src/2-transcribe.ts b/worker/src/2-transcribe.ts index 9d0f2ce..3cbb4cb 100644 --- a/worker/src/2-transcribe.ts +++ b/worker/src/2-transcribe.ts @@ -45,6 +45,12 @@ function runCommand(cmd: string, timeout = 5000): Promise { continue; } + // we're skipping 'direkt' episodes because they're sometimes live and causes issues for whisper. For some reason, the timeout isn't working correctly killing the process. + if (article.sverigesRadioTitle.includes('direkt')) { + console.log(`title includes 'direkt', skipping`); + continue; + } + console.log(`Downloading episode...`); try { await runCommand(