From 07bab4d842d23908a34daf5adf96280a4002665a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 30 Jan 2025 23:52:24 +0100 Subject: music and proper parent slug --- common/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'common/src') diff --git a/common/src/lib.rs b/common/src/lib.rs index 5dadd1c..4d6123c 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -15,7 +15,10 @@ pub use chrono; use bincode::{Decode, Encode}; use serde::{Deserialize, Serialize}; -use std::{collections::BTreeMap, path::PathBuf}; +use std::{ + collections::{BTreeMap, BTreeSet}, + path::PathBuf, +}; #[derive( Clone, Copy, Debug, Serialize, Deserialize, Encode, Decode, PartialEq, Eq, PartialOrd, Ord, @@ -26,7 +29,7 @@ pub struct NodeID(pub [u8; 32]); pub struct Node { pub slug: String, #[serde(default)] - pub parents: Vec, + pub parents: BTreeSet, pub kind: Option, pub poster: Option, pub backdrop: Option, @@ -99,6 +102,7 @@ pub enum NodeKind { #[default] Movie, Video, + Music, ShortFormVideo, Collection, Channel, -- cgit v1.2.3-70-g09d2