Compare commits

...
Author SHA1 Message Date
Brandon Thomas d961d88459 fix api 2026-02-25 06:22:53 +07:00
2 changed files with 6 additions and 6 deletions
@@ -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>,
}