fix seedance api break (#1056)

This commit is contained in:
Brandon Thomas authored and GitHub committed 2026-02-25 06:24:31 +07:00
1 parent b3ae7e44cc
commit 73b17b2005
2 files changed
+6 -6

No files matched your search

@@ -77,9 +77,9 @@ impl TaskStatus {
#[derive(Debug, Clone)]
pub struct VideoResult {
pub url: String,
pub width: u32,
pub height: u32,
// NB: We don't need these.
// pub width: u32,
// pub height: u32,
// /// Width / height ratio (e.g. 1.777… for 16:9). `None` when the server returns null (e.g. width/height are 0).
// pub ratio: Option<f64>,
}
@@ -178,8 +178,8 @@ pub async fn poll_orders(args: PollOrdersArgs<'_>) -> Result<PollOrdersResponse,
result_url: o.result_url,
results: o.results.into_iter().map(|r| VideoResult {
url: r.url,
// width: r.width,
// height: r.height,
width: r.width,
height: r.height,
// ratio: r.ratio,
}).collect(),
fail_reason: o.fail_reason,
@@ -36,7 +36,7 @@ pub(super) struct RawOrder {
#[derive(Deserialize, Debug)]
pub(super) struct RawVideoResult {
pub url: String,
// pub width: u32,
// pub height: u32,
pub width: u32,
pub height: u32,
// pub ratio: Option<f64>,
}