diff options
| author | A Farzat <a@farzat.xyz> | 2025-11-23 21:04:38 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-11-23 21:04:38 +0300 |
| commit | bf2d5cd0ef00a007adce04ab9871ce0e8167c241 (patch) | |
| tree | 102bdc82e47fa31926ec52c5efae475cfb3efef1 | |
| parent | 53724caedc8d3d3783bb701f615afd3eb8298ebb (diff) | |
| download | simple-rss-podcast-downloader-master.tar.gz simple-rss-podcast-downloader-master.zip | |
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index ab8e299..1cd60f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use clap::{Parser, ValueEnum}; +use std::fs::create_dir_all; use simple_rss_podcast_downloader::*; #[derive(ValueEnum, Clone, Debug)] @@ -26,6 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { let xml = fetch_feed(&args.feed_url)?; let channel = parse_feed(&xml)?; + create_dir_all(&args.output_dir)?; let pad = channel.items().len().to_string().len(); let newest_first = matches!(args.order, Order::Newest); for (i, url) in get_audio_urls(&channel, newest_first) { |
