diff options
author | metamuffin <metamuffin@disroot.org> | 2023-07-31 16:52:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-07-31 16:52:46 +0200 |
commit | 0c651f11920350a4aa96aa24f8fe15b28390aed2 (patch) | |
tree | 724e5e79d6c6000077cd0c33c669c32475ed069f /server/src/library.rs | |
parent | e6e424833315a6c0d04c7706d539f57e1b1df0f7 (diff) | |
download | jellything-0c651f11920350a4aa96aa24f8fe15b28390aed2.tar jellything-0c651f11920350a4aa96aa24f8fe15b28390aed2.tar.bz2 jellything-0c651f11920350a4aa96aa24f8fe15b28390aed2.tar.zst |
update remuxer for new schema
Diffstat (limited to 'server/src/library.rs')
-rw-r--r-- | server/src/library.rs | 27 |
1 files changed, 0 insertions, 27 deletions
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<Node>, - pub root_path: PathBuf, -} - -#[derive(Debug, Clone)] -pub enum Node { - Directory(Arc<Directory>), - Item(Arc<Item>), -} - -#[derive(Debug, Clone)] -pub struct Directory { - pub lib_path: PathBuf, - pub identifier: String, - pub info: DirectoryInfo, - pub children: Vec<Arc<Node>>, -} - -#[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<Self> { Ok(Self { |