Add searching feature

This commit is contained in:
2025-06-08 21:53:45 +09:00
parent cd0e4065fc
commit b7f3ca6a27
16 changed files with 564 additions and 194 deletions

View File

@ -2,7 +2,10 @@ import crypto from "crypto";
import fs from "fs/promises";
import Parser from "rss-parser";
import { config } from "../services/config.js";
import { enhanceArticleContent, closeBrowser } from "../services/content-extractor.js";
import {
closeBrowser,
enhanceArticleContent,
} from "../services/content-extractor.js";
import {
getFeedById,
getFeedByUrl,
@ -13,8 +16,8 @@ import {
saveFeed,
} from "../services/database.js";
import {
openAI_ClassifyFeed,
openAI_ClassifyEpisode,
openAI_ClassifyFeed,
openAI_GeneratePodcastContent,
} from "../services/llm.js";
import { updatePodcastRSS } from "../services/podcast.js";
@ -426,7 +429,7 @@ async function processRetryQueue(abortSignal?: AbortSignal): Promise<void> {
closeError,
);
}
// Close Puppeteer browser on exit
await closeBrowser();
}