### Downloading All Podcast Episodes (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads all available episodes from the specified RSS feed URL. It's the most basic usage of the `podcast-dl` tool, fetching all content from the provided source. ```bash npx podcast-dl --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Downloading Podcast Episodes to Custom Directory (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads all episodes and saves them to the specified output directory. The `--out-dir` option allows users to organize downloaded content into a custom location, rather than the default. ```bash npx podcast-dl --out-dir "./another/directory" --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Running podcast-dl with npx (Node.js/Shell) Source: https://github.com/lightpohl/podcast-dl/blob/main/README.md This snippet demonstrates how to run the podcast-dl CLI using `npx`, which executes the package directly without global installation. It requires Node.js to be installed on the system. The `--url` flag specifies the RSS feed URL of the podcast to download. ```Shell npx podcast-dl --url ``` -------------------------------- ### Downloading Last N Podcast Episodes (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads only the last 10 episodes from the podcast feed. The `--limit` option restricts the number of episodes processed, starting from the most recent ones available in the feed. ```bash npx podcast-dl --limit 10 --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Converting Podcast Episodes with FFmpeg (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads episodes and then executes an FFmpeg command on each downloaded file to convert it to an MP3 at a 192k bitrate. The `--exec` option allows running custom commands after download, using template variables for file paths. ```bash npx podcast-dl --url "http://eightfour.libsyn.com/rss" --exec "ffmpeg -i {{episode_path}} -b:a 192k -f mp3 {{episode_path_base}}/{{episode_filename_base}}-192k.mp3" ``` -------------------------------- ### Downloading First N Podcast Episodes (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads the first 10 episodes from the podcast feed, based on their chronological order. The `--reverse` option processes episodes from oldest to newest before applying the limit, ensuring the earliest episodes are downloaded. ```bash npx podcast-dl --limit 10 --reverse --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Downloading Podcast Episodes to Title-Based Directories (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads each episode into its own subdirectory, named after the episode's title. The `--episode-template` option uses a template string to define the file path and name, allowing for structured organization. ```bash npx podcast-dl --episode-template "{{title}}/{{title}}" --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Downloading Podcast Episodes with Concurrency (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads all episodes from the RSS feed, processing 4 episodes concurrently. The `--threads` option controls the number of parallel downloads, which can significantly improve efficiency for large feeds. ```bash npx podcast-dl --threads 4 --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Downloading Podcast Episodes by Date Range (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads all episodes released within the year 2021. The `--after` and `--before` options allow filtering episodes by their publication dates, providing precise control over which episodes are downloaded. ```bash npx podcast-dl --after "01/01/2021" --before "12/31/2021" --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Downloading Podcast Episodes by Title Regex (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command downloads only episodes whose titles contain the word 'Zelda'. The `--episode-regex` option filters episodes based on a regular expression match against their titles, allowing for specific content targeting. ```bash npx podcast-dl --episode-regex "Zelda" --url "http://eightfour.libsyn.com/rss" ``` -------------------------------- ### Customizing Episode Filenames with Extracted Data (Bash) Source: https://github.com/lightpohl/podcast-dl/blob/main/docs/examples.md This command extracts 'foo' and 'bar' from the episode title (assuming they are part of the title) and uses them in the episode filename. The `--episode-custom-template-options` defines values that can be referenced in the `--episode-template` for dynamic naming. ```bash npx podcast-dl --url "http://eightfour.libsyn.com/rss" --episode-custom-template-options "foo" "bar" --episode-template "{{custom_0}}-{{custom_1}}-{{episode_num}}" ``` -------------------------------- ### Running podcast-dl from Binary (Shell) Source: https://github.com/lightpohl/podcast-dl/blob/main/README.md This snippet shows how to execute the podcast-dl CLI directly from a downloaded binary. Users need to obtain the appropriate binary for their operating system from the releases page. The `--url` flag is used to provide the RSS feed URL for the podcast. ```Shell podcast-dl --url ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.