6FJACP6KUOZ4HWK4PSS5PFPGDYXZSCAWSKIARWBDGCZTPJWXA62AC
}
}
pub fn stream_episode(state: State, p_search: &str, e_search: &str) {
let re_pod = Regex::new(&p_search).unwrap();
let ep_num = e_search.parse::<usize>().unwrap();
for subscription in state.subscriptions() {
if re_pod.is_match(&subscription.name) {
let podcast = Podcast::from_url(&subscription.url).unwrap();
let episodes = podcast.episodes();
launch_mpv(episodes[episodes.len() - ep_num].download_url().unwrap());
}
Some("play") => {
let play_matches = matches.subcommand_matches("play").unwrap();
let podcast = play_matches.value_of("PODCAST").unwrap();
let episode = play_matches.value_of("EPISODE").unwrap();
stream_episode(state, podcast, episode);
// let file = File::open("rss.xml").unwrap();
// let channel = Channel::read_from(BufReader::new(file)).unwrap();
// let ep = Episode::from(channel.items()[20].clone());
// stream_episode(ep);
}