use podal::prelude::*; use podal::{feed::FeedEnv, fetch::FetchEnv, history::HistoryEnv}; fn main() -> Result<()> { println!("Podal"); let subscriptions = "subscriptions.txt"; let history = "downloaded.txt"; let site = "https://www.youtube.com/"; podal::run( subscriptions, history, site, podal::Env { feed: FeedEnv { find: podal::feed::find, get: podal::feed::reqwest_blocking_get, }, history: HistoryEnv { find: podal::history::find, add: podal::history::add, }, fetch: FetchEnv { download: podal::fetch::download, get: podal::fetch::get, }, }, )?; println!("Done"); Ok(()) }