podal/src/main.rs

24 lines
484 B
Rust
Raw Normal View History

use podal::file::FileEnv;
use podal::network::NetworkEnv;
2023-07-25 10:46:47 +01:00
use podal::prelude::*;
fn main() -> Result<()> {
2023-07-23 18:50:59 +01:00
println!("Podal");
let subscriptions = "subscriptions.txt";
let history = "downloaded.txt";
2023-07-24 07:40:20 +01:00
let site = "https://www.youtube.com/";
2023-07-23 18:50:59 +01:00
podal::run(
subscriptions,
history,
site,
podal::Env {
network: NetworkEnv::default(),
file: FileEnv::default(),
},
)?;
2023-07-23 18:50:59 +01:00
println!("Done");
Ok(())
}