From 32de72e74a812f2e5140d254326260a2718f813e Mon Sep 17 00:00:00 2001 From: Radiicall Date: Tue, 30 Jul 2024 10:40:58 +0200 Subject: [PATCH] use PascalCase and print found ancestors --- jellyfin-rpc/src/jellyfin.rs | 1 + jellyfin-rpc/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/jellyfin-rpc/src/jellyfin.rs b/jellyfin-rpc/src/jellyfin.rs index 4d97aad..4d65a98 100644 --- a/jellyfin-rpc/src/jellyfin.rs +++ b/jellyfin-rpc/src/jellyfin.rs @@ -327,6 +327,7 @@ pub struct PlayState { } #[derive(Deserialize, Debug)] +#[serde(rename_all = "PascalCase")] pub struct Item { pub name: Option, } diff --git a/jellyfin-rpc/src/lib.rs b/jellyfin-rpc/src/lib.rs index e6407b7..537423b 100644 --- a/jellyfin-rpc/src/lib.rs +++ b/jellyfin-rpc/src/lib.rs @@ -501,6 +501,8 @@ impl Client { .send()? .json()?; + debug!("Ancestors: {:?}", ancestors); + Ok(ancestors) }