diff options
| author | Nathan Jaremko | 2019-02-24 19:28:38 -0500 | 
|---|---|---|
| committer | Nathan Jaremko | 2019-02-24 19:28:38 -0500 | 
| commit | ec84cdd94c14583dbc57a683fc5e511d48c594fd (patch) | |
| tree | 60b5359972f21d9a5f91959e451fe88809976872 /src/actions.rs | |
| parent | e80219b5a569a8745fe6423eaeb4f4d8caf03924 (diff) | |
| download | podcast-ec84cdd94c14583dbc57a683fc5e511d48c594fd.tar.bz2 | |
Improve subscription behavior
Diffstat (limited to 'src/actions.rs')
| -rw-r--r-- | src/actions.rs | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/src/actions.rs b/src/actions.rs index cb4a157..989fe2b 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -47,16 +47,11 @@ pub fn list_episodes(search: &str) -> Result<()> {      Ok(())  } -pub fn subscribe_rss(url: &str) -> Result<Channel> { -    println!("Downloading RSS feed..."); -    download_rss_feed(url) -} -  pub fn download_rss(config: &Config, url: &str) -> Result<()> { -    println!("Downloading episode(s)...");      let channel = download_rss_feed(url)?;      let mut download_limit = config.auto_download_limit as usize;      if 0 < download_limit { +        println!("Downloading episode(s)...");          let podcast = Podcast::from(channel);          let episodes = podcast.episodes();          if episodes.len() < download_limit { | 
