From bd6ce60c9972715d422d986ce98d3203d25ff76a Mon Sep 17 00:00:00 2001 From: Satsuki Akiba Date: Sun, 8 Jun 2025 23:01:49 +0900 Subject: [PATCH] Fix --- server.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server.ts b/server.ts index 99f8ec7..6c813c5 100644 --- a/server.ts +++ b/server.ts @@ -130,7 +130,7 @@ app.get("/podcast.xml", async (c) => { }); // Category-specific RSS feeds - try static file first, then generate dynamically -app.get("/podcast/category/:category.xml", async (c) => { +app.get("/podcast/category/:category", async (c) => { try { const category = decodeURIComponent(c.req.param("category") || ""); if (!category) { @@ -154,7 +154,9 @@ app.get("/podcast/category/:category.xml", async (c) => { } // Fallback to dynamic generation - console.log(`📄 Static category RSS not found for "${category}", generating dynamically...`); + console.log( + `📄 Static category RSS not found for "${category}", generating dynamically...`, + ); const { generateCategoryRSS } = await import("./services/podcast.js"); const rssXml = await generateCategoryRSS(category); @@ -172,7 +174,7 @@ app.get("/podcast/category/:category.xml", async (c) => { }); // Feed-specific RSS feeds - try static file first, then generate dynamically -app.get("/podcast/feed/:feedId.xml", async (c) => { +app.get("/podcast/feed/:feedId", async (c) => { try { const feedId = c.req.param("feedId"); if (!feedId) { @@ -195,7 +197,9 @@ app.get("/podcast/feed/:feedId.xml", async (c) => { } // Fallback to dynamic generation - console.log(`📄 Static feed RSS not found for "${feedId}", generating dynamically...`); + console.log( + `📄 Static feed RSS not found for "${feedId}", generating dynamically...`, + ); const { generateFeedRSS } = await import("./services/podcast.js"); const rssXml = await generateFeedRSS(feedId);