podcast-dl 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,6 +104,7 @@ If no match is found, the `custom_<n>` keyword will be replaced with an empty st
104
104
  - `episode_path_base`: The path to the folder of the downloaded episode.
105
105
  - `episode_filename`: The filename of the episode.
106
106
  - `episode_filename_base`: The filename of the episode without its extension.
107
+ - `url`: URL of episode audio file.
107
108
 
108
109
  ## Log Levels
109
110
 
package/bin/async.js CHANGED
@@ -247,6 +247,7 @@ const downloadItemsAsync = async ({
247
247
  basePath,
248
248
  outputPodcastPath,
249
249
  episodeFilename,
250
+ episodeAudioUrl,
250
251
  });
251
252
  }
252
253
 
package/bin/util.js CHANGED
@@ -689,6 +689,7 @@ const runExec = async ({
689
689
  basePath,
690
690
  outputPodcastPath,
691
691
  episodeFilename,
692
+ episodeAudioUrl,
692
693
  }) => {
693
694
  const episodeFilenameBase = episodeFilename.substring(
694
695
  0,
@@ -699,7 +700,8 @@ const runExec = async ({
699
700
  .replace(/{{episode_path}}/g, `"${outputPodcastPath}"`)
700
701
  .replace(/{{episode_path_base}}/g, `"${basePath}"`)
701
702
  .replace(/{{episode_filename}}/g, `"${episodeFilename}"`)
702
- .replace(/{{episode_filename_base}}/g, `"${episodeFilenameBase}"`);
703
+ .replace(/{{episode_filename_base}}/g, `"${episodeFilenameBase}"`)
704
+ .replace(/{{url}}/g, `"${episodeAudioUrl}"`);
703
705
 
704
706
  await execWithPromise(execCmd, { stdio: "ignore" });
705
707
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podcast-dl",
3
- "version": "10.2.0",
3
+ "version": "10.3.0",
4
4
  "description": "A CLI for downloading podcasts.",
5
5
  "type": "module",
6
6
  "bin": "./bin/bin.js",