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 +1 -0
- package/bin/async.js +1 -0
- package/bin/util.js +3 -1
- package/package.json +1 -1
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
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
|
};
|