Refacto get_root_folder_read_library_items.
This commit is contained in:
@@ -5,24 +5,12 @@ use crate::application_context::ApplicationContext;
|
||||
use actix_web::{web, App, HttpServer};
|
||||
use dotenv::dotenv;
|
||||
use log::info;
|
||||
use rustls::ServerConfig;
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::{BufReader, Error};
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use lumiere_exposition::init;
|
||||
use lumiere_infrastructure::video::video_format_detector::get_content_type;
|
||||
use tokio_cron_scheduler::{Job, JobScheduler};
|
||||
use std::env;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
// let path_str = "/home/florian/Videos/AirFly/GH010015.MP4";
|
||||
// let path = Path::new(path_str);
|
||||
// let file_type = get_content_type(&path);
|
||||
// let file_content_type = map_to_content_type(&file_type);
|
||||
// println!("file_type={file_content_type}");
|
||||
// ()
|
||||
dotenv().ok();
|
||||
unsafe { env::set_var("RUST_LOG", "debug"); }
|
||||
check_all_variables_are_set();
|
||||
|
||||
Reference in New Issue
Block a user