From 0c651f11920350a4aa96aa24f8fe15b28390aed2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 31 Jul 2023 16:52:46 +0200 Subject: update remuxer for new schema --- server/src/library.rs | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'server/src/library.rs') diff --git a/server/src/library.rs b/server/src/library.rs index ffd8b4a..8606a6e 100644 --- a/server/src/library.rs +++ b/server/src/library.rs @@ -16,33 +16,6 @@ use std::{ use crate::{routes::ui::node::AssetRole, CONF}; -pub struct Library { - pub root: Arc, - pub root_path: PathBuf, -} - -#[derive(Debug, Clone)] -pub enum Node { - Directory(Arc), - Item(Arc), -} - -#[derive(Debug, Clone)] -pub struct Directory { - pub lib_path: PathBuf, - pub identifier: String, - pub info: DirectoryInfo, - pub children: Vec>, -} - -#[derive(Debug, Clone)] -pub struct Item { - pub fs_path: PathBuf, - pub lib_path: PathBuf, - pub identifier: String, - pub info: ItemInfo, -} - impl Library { pub fn open(path: &Path) -> anyhow::Result { Ok(Self { -- cgit v1.2.3-70-g09d2