diff --git a/bin/bin.js b/bin/bin.js index 392bb35..b939369 100644 --- a/bin/bin.js +++ b/bin/bin.js @@ -246,7 +246,6 @@ const main = async () => { continue; } - const outputPodcastPath = _path.resolve(basePath, episodeFilename); const episodeFilename = getFilename({ item, feed, @@ -254,6 +253,7 @@ const main = async () => { ext: audioFileExt, template: episodeTemplate, }); + const outputPodcastPath = _path.resolve(basePath, episodeFilename); try { await download({