From 57fccd01d487284bb317fb1ff778e0fd2e140c12 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 23 Oct 2023 18:51:17 +0200 Subject: release date from infojson and sorting --- common/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/src') diff --git a/common/src/lib.rs b/common/src/lib.rs index 2bde0b9..8292e87 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -11,6 +11,9 @@ pub mod seek_index; pub mod stream; pub mod user; +pub use chrono; + +use chrono::{DateTime, Utc}; #[cfg(feature = "rocket")] use rocket::{FromFormField, UriDisplayQuery}; use serde::{Deserialize, Serialize}; @@ -42,6 +45,7 @@ pub struct NodePublic { #[serde(default)] pub children: Vec, #[serde(default)] pub tagline: Option, #[serde(default)] pub description: Option, + #[serde(default)] pub release_date: Option>, #[serde(default)] pub index: Option, #[serde(default)] pub media: Option, #[serde(default)] pub ratings: BTreeMap, -- cgit v1.2.3-70-g09d2