fix: correct audio file path for filesize calculation
This commit is contained in:
		@@ -27,7 +27,9 @@ export async function updatePodcastRSS() {
 | 
			
		||||
  for (const ep of episodes) {
 | 
			
		||||
    const fileUrl = `${baseUrl}/podcast_audio/${path.basename(ep.audioPath)}`;
 | 
			
		||||
    const pubDate = new Date(ep.pubDate).toUTCString();
 | 
			
		||||
    const fileSize = fsSync.statSync(ep.audioPath).size;
 | 
			
		||||
    const fileSize = fsSync.statSync(
 | 
			
		||||
      path.join(import.meta.dir, "public/podcast_audio", ep.audioPath),
 | 
			
		||||
    ).size;
 | 
			
		||||
    itemsXml += `
 | 
			
		||||
      <item>
 | 
			
		||||
        <title><![CDATA[${ep.title}]]></title>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user