diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-16 09:49:17 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-16 09:49:17 +0100 |
commit | dc19623a18ac47d9c660d98db768c64d99decff9 (patch) | |
tree | 68326a0177c492e7642251fb33b936cdd998e5c9 /crates/yt_dlp | |
parent | fix(crates/yt_dlp/wrappers/info_json): Don't serialize `None` values (diff) | |
download | yt-dc19623a18ac47d9c660d98db768c64d99decff9.zip |
fix(crates/yt_dlp/wrappers/info_json): Serialize the `InfoType`s with their correct name
Diffstat (limited to 'crates/yt_dlp')
-rw-r--r-- | crates/yt_dlp/src/wrapper/info_json.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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, } |