From 39a9442e52a6a3b79230612071f7d7fd10533ec8 Mon Sep 17 00:00:00 2001 From: Doge Gui Date: Sat, 15 Jan 2022 16:33:27 +0800 Subject: Fix 'podcast' is not a constructor --- scripts/feed.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/feed.js b/scripts/feed.js index e974475..edecc99 100644 --- a/scripts/feed.js +++ b/scripts/feed.js @@ -11,6 +11,8 @@ hexo.extend.generator.register("feed", (locals) => { if (!theme.rss || !theme.rss.enable) return; const podcast = require("podcast"); + if (podcast.hasOwnProperty('Podcast')) + podcast = podcast.Podcast; // Generate Podcast Categories content let categories = []; -- cgit v1.2.3