diff options
| author | njaremko | 2017-07-17 21:59:33 -0400 |
|---|---|---|
| committer | njaremko | 2017-07-17 21:59:33 -0400 |
| commit | 9a7d334dd698e450851bf30b432de64f1a7ef748 (patch) | |
| tree | 51f5960b955707c4ff618f4f26b352d11279d1d3 | |
| parent | 599d3dcc21bd843ccbcd603c7f8b64789417845e (diff) | |
| download | podcast-9a7d334dd698e450851bf30b432de64f1a7ef748.tar.bz2 | |
General Cleanup
| -rw-r--r-- | src/actions.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs index 4a6c122..56e2325 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -62,12 +62,11 @@ pub fn play_episode(state: State, p_search: &str, ep_num_string: &str) { for subscription in state.subscriptions() { if re_pod.is_match(&subscription.name) { let podcast = Podcast::from_url(&subscription.url).unwrap(); - path.push(podcast.title()); let episodes = podcast.episodes(); let episode = episodes[episodes.len() - ep_num].clone(); - let mut filename = String::from(episode.title().unwrap()); filename.push_str(episode.extension().unwrap()); + path.push(podcast.title()); path.push(filename); match path.exists() { true => launch_mpv(path.to_str().unwrap()), |
