about summary refs log tree commit diff stats
path: root/crates/yt_dlp
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-16 09:49:17 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-16 09:49:17 +0100
commitdc19623a18ac47d9c660d98db768c64d99decff9 (patch)
tree68326a0177c492e7642251fb33b936cdd998e5c9 /crates/yt_dlp
parentfix(crates/yt_dlp/wrappers/info_json): Don't serialize `None` values (diff)
downloadyt-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.rs3
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,
 }