aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 6d7f812..a9a22cf 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -6,14 +6,13 @@
use config::{load_global_config, GlobalConfig};
use database::Database;
use jellyremuxer::RemuxerContext;
-use library::Library;
use once_cell::sync::Lazy;
use rocket::launch;
use routes::build_rocket;
pub mod config;
pub mod database;
-pub mod library;
+pub mod import;
pub mod routes;
pub static CONF: Lazy<GlobalConfig> = Lazy::new(load_global_config);
@@ -29,8 +28,8 @@ fn rocket() -> _ {
log::warn!("authentification bypass enabled");
let remuxer = RemuxerContext::new();
- let library = Library::open(&CONF.library_path).unwrap();
let database = Database::open(&CONF.database_path).unwrap();
+ import::import(&database).unwrap();
database.create_admin();
- build_rocket(remuxer, library, database)
+ build_rocket(remuxer, database)
}