From 21a20b898ca8613a5a0b6a16a1e98737f0215d95 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Thu, 17 Sep 2026 18:57:00 +0100 Subject: [PATCH] added custom url label and is protected fields to catalog listing --- crates/server/src/http.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/server/src/http.rs b/crates/server/src/http.rs index 1defb4f..3ac4e2f 100644 --- a/crates/server/src/http.rs +++ b/crates/server/src/http.rs @@ -125,9 +125,11 @@ impl HttpServer { #[derive(Serialize)] struct StreamListing { label: String, + custom_url_label: String, id: i32, user: String, - started_at: DateTime, //UNIX TIMESTAMP + started_at: DateTime, + is_password_protected: bool, } #[derive(Deserialize)] @@ -252,8 +254,10 @@ async fn catalog_handler( .map(|x| StreamListing { id: x.stream_key_id, label: x.stream_key_label.clone(), + custom_url_label: x.custom_id.clone().unwrap_or_default(), user: x.stream_key_user.clone(), started_at: x.started_at, + is_password_protected: x.password.is_some(), }) .collect::>(); Ok(Json(catalog))