podcast-dl 8.0.5 → 8.0.6

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/bin/commander.js CHANGED
@@ -4,7 +4,7 @@ import { logErrorAndExit } from "./logger.js";
4
4
 
5
5
  export const setupCommander = (commander, argv) => {
6
6
  commander
7
- .version("8.0.5")
7
+ .version("8.0.6")
8
8
  .option("--url <string>", "url to podcast rss feed")
9
9
  .option(
10
10
  "--out-dir <path>",
package/bin/util.js CHANGED
@@ -318,6 +318,10 @@ const writeItemMeta = ({
318
318
  };
319
319
 
320
320
  const getUrlExt = (url) => {
321
+ if (!url) {
322
+ return "";
323
+ }
324
+
321
325
  const { pathname } = new URL(url);
322
326
 
323
327
  if (!pathname) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podcast-dl",
3
- "version": "8.0.5",
3
+ "version": "8.0.6",
4
4
  "description": "A CLI for downloading podcasts.",
5
5
  "type": "module",
6
6
  "bin": "./bin/bin.js",