aspectratio typo

This commit is contained in:
Simon
2025-09-26 16:08:41 +00:00
parent 3f98a9eecb
commit 661a28b6ac

View File

@@ -87,7 +87,7 @@ pub struct VideoItem {
#[serde(skip_serializing_if = "Option::is_none")]
pub preview: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub aspectRation: Option<f32>,
pub aspectRatio: Option<f32>,
}
#[allow(dead_code)]
impl VideoItem {
@@ -116,7 +116,7 @@ impl VideoItem {
formats: None, // Placeholder for formats
embed: None, // Placeholder for embed information
preview: None,
aspectRation: None,
aspectRatio: None,
}
}
pub fn tags(mut self, tags: Vec<String>) -> Self {
@@ -168,7 +168,7 @@ impl VideoItem {
}
pub fn aspect_ratio(mut self, aspect_ratio: f32) -> Self {
self.aspectRation = Some(aspect_ratio);
self.aspectRatio = Some(aspect_ratio);
self
}
}