Skip to content

Commit

Permalink
skip 'direkt'
Browse files Browse the repository at this point in the history
  • Loading branch information
elitan committed Oct 5, 2023
1 parent 18c9528 commit 80cbe44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/server/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function searchRkbildPhotos(query: string): Promise<any> {
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='
Expand Down
6 changes: 6 additions & 0 deletions worker/src/2-transcribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ function runCommand(cmd: string, timeout = 5000): Promise<string> {
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(
Expand Down

0 comments on commit 80cbe44

Please sign in to comment.