From dc19623a18ac47d9c660d98db768c64d99decff9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 16 Feb 2025 09:49:17 +0100 Subject: fix(crates/yt_dlp/wrappers/info_json): Serialize the `InfoType`s with their correct name --- crates/yt_dlp/src/wrapper/info_json.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates') diff --git a/crates/yt_dlp/src/wrapper/info_json.rs b/crates/yt_dlp/src/wrapper/info_json.rs index 9d63ee6..720740c 100644 --- a/crates/yt_dlp/src/wrapper/info_json.rs +++ b/crates/yt_dlp/src/wrapper/info_json.rs @@ -613,12 +613,15 @@ pub struct HeatMapEntry { #[serde(deny_unknown_fields)] pub enum InfoType { #[serde(alias = "playlist")] + #[serde(rename(serialize = "playlist"))] Playlist, #[serde(alias = "url")] + #[serde(rename(serialize = "url"))] Url, #[serde(alias = "video")] + #[serde(rename(serialize = "video"))] Video, } -- cgit 1.4.1