feat: update files for Hono router and SPA support
This commit is contained in:
		@@ -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