feat: update files for Hono router and SPA support
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<base href="/" />
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ポッドキャスト管理画面</title>
|
||||
|
@ -13,7 +13,7 @@ export async function updatePodcastRSS() {
|
||||
|
||||
let itemsXml = "";
|
||||
for (const ep of episodes) {
|
||||
const fileUrl = `https://your-domain.com/podcast_audio/${path.basename(
|
||||
const fileUrl = `https://your-domain.com/static/podcast_audio/${path.basename(
|
||||
ep.audioPath,
|
||||
)}`;
|
||||
const pubDate = new Date(ep.pubDate).toUTCString();
|
||||
|
@ -25,7 +25,7 @@ export async function generateTTS(
|
||||
if (!fs.existsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir, { recursive: true });
|
||||
}
|
||||
const filePath = path.join(outputDir, `${itemId}.mp3`);
|
||||
const filePath = path.resolve(outputDir, `${itemId}.mp3`);
|
||||
|
||||
const chunks: Uint8Array[] = [];
|
||||
for await (const chunk of response.AudioStream as any) {
|
||||
|
Reference in New Issue
Block a user