aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-19 09:02:16 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-19 09:02:16 +0100
commitcadb3057d06a38abfac9067cbdc59ce3d926a658 (patch)
treeac70156a70f5cbd52a4b4d32df1442ab734c4c22 /common/src
parentfbc1128f30438a4e18521073eb1bb79a77a7f20d (diff)
downloadjellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar
jellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar.bz2
jellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar.zst
item page styled
Diffstat (limited to 'common/src')
-rw-r--r--common/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index d9e443b..a4380c6 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -1,7 +1,7 @@
pub mod r#impl;
use serde::{Deserialize, Serialize};
-use std::collections::BTreeMap;
+use std::{collections::BTreeMap, path::PathBuf};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct DirectoryInfo {
@@ -12,7 +12,8 @@ pub struct DirectoryInfo {
pub struct ItemInfo {
pub title: String,
pub duration: f64, // in seconds
- pub path: String,
+ pub path: PathBuf,
+ pub banner: Option<PathBuf>,
pub tracks: BTreeMap<u64, SourceTrack>,
}