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