9.3.3 • Published 17 days ago

podcast-dl v9.3.3

Weekly downloads
71
License
MIT
Repository
github
Last release
17 days ago

podcast-dl

A humble CLI for downloading and archiving podcasts.

How to Use

npx

Node Required

npx podcast-dl --url <PODCAST_RSS_URL>

Binaries

Visit the releases page and download the latest binary for your system.

podcast-dl --url <PODCAST_RSS_URL>

More Examples

Options

Either --url or --file must be provided.

Type values surrounded in square brackets ([]) can be used as used as boolean options (no argument required).

OptionTypeRequiredDescription
--urlStringtrue*URL to podcast RSS feed.
--fileStringtrue*Path to local RSS file.
--out-dirStringfalseSpecify output directory for episodes and metadata. Defaults to "./{{podcast_title}}". See "Template Options" for more details.
--threadsNumberfalseDetermines the number of downloads that will happen concurrently. Default is 1.
--attemptsNumberfalseSets the number of download attempts per individual file. Default is 3.
--archiveStringfalseDownload or write out items not listed in archive file. Generates archive file at path if not found. Defaults to "./{{podcast_title}}/archive.json" when used as a boolean option. See "Template Options" for more details.
--episode-templateStringfalseTemplate for generating episode related filenames. See "Template Options" for details.
--include-metafalseWrite out podcast metadata to JSON.
--include-episode-metafalseWrite out individual episode metadata to JSON.
--include-episode-imagesfalseDownload found episode images.
--offsetNumberfalseOffset starting download position. Default is 0.
--limitNumberfalseMax number of episodes to download. Downloads all by default.
--afterStringfalseOnly download episodes after this date (i.e. MM/DD/YYY, inclusive).
--beforeStringfalseOnly download episodes before this date (i.e. MM/DD/YYY, inclusive)
--episode-regexStringfalseMatch episode title against provided regex before starting download.
--episode-digitsNumberfalseMinimum number of digits to use for episode numbering (e.g. 3 would generate "001" instead of "1"). Default is 0.
--episode-source-orderStringfalseAttempted order to extract episode audio URL from RSS feed. Default is "enclosure,link".
--add-mp3-metadatafalseAttempts to add a base level of episode metadata to each episode. Recommended only in cases where the original metadata is of poor quality. (ffmpeg required)
--adjust-bitrateString (e.g. "48k")falseAttempts to adjust bitrate of episodes. (ffmpeg required)
--monofalseAttempts to force episodes into mono. (ffmpeg required)
--overridefalseOverride local files on collision.
--always-postprocessfalseAlways run additional tasks on the file regardless if the file already exists. This includes --add-mp3-metadata, --adjust-bitrate, --mono, and --exec.
--reversefalseReverse download direction and start at last RSS item.
--infofalsePrint retrieved podcast info instead of downloading.
--listStringfalsePrint episode list instead of downloading. Defaults to "table" when used as a boolean option. "json" is also supported.
--execStringfalseExecute a command after each episode is downloaded. See "Template Options" for more details.
--parser-configStringfalsePath to JSON file that will be parsed and used to override the default config passed to rss-parser.
--proxyfalseEnable proxy support. Specify environment variables listed by global-agent.
--helpfalseOutput usage information.

Archive

  • If passed the --archive [path] option, podcast-dl will generate/use a JSON archive at the provided path.
  • Before downloading an episode or writing out metadata, it'll check if the item was saved previously and abort the save if found.

Template Options

Options that support templates allow users to specify a template for the generated filename(s) or option. The provided template will replace all matched keywords with the related data described below. Each keyword must be wrapped in two braces like so:

--out-dir "./{{podcast_title}}"

--episode-template "{{release_date}}-{{title}}"

--out-dir & --archive

  • podcast_title: Title of the podcast feed.
  • podcast_link: link value provided for the podcast feed. Typically the homepage URL.

--episode-template

  • title: The title of the episode.
  • release_date: The release date of the episode in YYYYMMDD format.
  • episode_num: The location number of where the episodes appears in the feed.
  • url: URL of episode audio file.
  • duration: Provided mm:ss duration (if found).
  • podcast_title: Title of the podcast feed.
  • podcast_link: link value provided for the podcast feed. Typically the homepage URL.
  • guid: The GUID of the episode.

--exec

  • episode_path: The path to the downloaded episode.
  • episode_path_base: The path to the folder of the downloaded episode.
  • episode_filename: The filename of the episode.
  • episode_filename_base: The filename of the episode without its extension.

Log Levels

By default, all logs and errors are outputted to the console. The amount of logs can be controlled using the environment variable LOG_LEVEL with the following options:

  • static: All logs and errors are outputted to the console, but disables any animations.
  • quiet: Only important info and non-critical errors will be logged (e.g. episode download started).
  • silent: Only critical error messages will be be logged.

OS Filename Limits

By default, the max length of a generated filename is 255. If your OS has different limitations, or if you're running into issues with non-standard feeds, you can adjust the limit via the environment variable MAX_LENGTH_FILENAME.

9.3.3

17 days ago

9.3.2

18 days ago

9.2.1

4 months ago

9.0.3

7 months ago

9.1.0

7 months ago

9.2.0

5 months ago

9.0.2

8 months ago

9.0.1

8 months ago

9.0.0

8 months ago

8.0.8

9 months ago

8.0.7

10 months ago

8.0.6

12 months ago

8.0.5

1 year ago

8.0.4

1 year ago

8.0.1

1 year ago

8.0.0

1 year ago

8.0.3

1 year ago

8.0.2

1 year ago

7.3.1

2 years ago

7.3.0

2 years ago

7.3.2

2 years ago

7.2.0

2 years ago

7.1.0

2 years ago

7.0.0

3 years ago

7.0.0-async.1

3 years ago

7.0.0-async.0

3 years ago

6.1.0

3 years ago

6.0.0

3 years ago

5.4.0

3 years ago

5.3.0

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.4

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.1.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.2.0

4 years ago

1.3.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago