ffplayout/src/main.rs

34 lines
862 B
Rust
Raw Normal View History

2022-02-20 22:08:17 +01:00
mod filter;
mod output;
2022-02-12 22:32:51 +01:00
mod utils;
use crate::output::desktop;
2022-02-23 18:06:40 +01:00
use crate::utils::{get_config, Messenger};
2022-02-12 22:32:51 +01:00
fn main() {
let config = get_config();
2022-02-23 18:06:40 +01:00
let msg = Messenger::new(&config);
2022-02-24 17:28:51 +01:00
// msg.debug("this is a debug");
// msg.info("this is a info");
// msg.warning("this is a warning");
// msg.error("this is a error");
2022-02-14 21:33:17 +01:00
// println!("{:#?}", config);
2022-02-15 17:27:06 +01:00
// folder::walk(&config.storage.path, config.storage.shuffle, &config.storage.extensions);
2022-02-14 21:33:17 +01:00
// read_json(&config);
2022-02-14 21:33:17 +01:00
2022-02-15 17:27:06 +01:00
// let args = arg_parse::get_args();
2022-02-15 17:27:06 +01:00
// println!("{:#?}", args);
// println!("{:#?}", args.config.is_some());
// // println!("{:#?}", args.config.unwrap());
// //println!("{:?}", config.general.stop_threshold);
// println!("{:#?}", utils::get_sec());
// println!("{:#?}", utils::get_timestamp());
desktop::play(msg, config);
2022-02-12 22:32:51 +01:00
}