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/match_handler.rs | |
| parent | e80219b5a569a8745fe6423eaeb4f4d8caf03924 (diff) | |
| download | podcast-ec84cdd94c14583dbc57a683fc5e511d48c594fd.tar.bz2 | |
Improve subscription behavior
Diffstat (limited to 'src/match_handler.rs')
| -rw-r--r-- | src/match_handler.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/match_handler.rs b/src/match_handler.rs index 428f99c..ac09d15 100644 --- a/src/match_handler.rs +++ b/src/match_handler.rs @@ -77,11 +77,7 @@ pub fn handle_matches( .value_of("URL") .chain_err(|| "unable to find subcommand match")?; state.subscribe(url).chain_err(|| "unable to subscribe")?; - if subscribe_matches.occurrences_of("download") > 0 { - download_rss(&config, url)?; - } else { - subscribe_rss(url)?; - } + download_rss(&config, url)?; } Some("search") => println!("This feature is coming soon..."), Some("rm") => { |
