fix(downloads): harden duplicate resolution and row controls

This commit is contained in:
NimBold
2026-07-29 18:28:46 +03:30
parent 546be23c91
commit 29bbb009b5
17 changed files with 248 additions and 89 deletions
+3 -1
View File
@@ -270,6 +270,8 @@ fn retry_metadata_with_cookies(
#[derive(Serialize, TS)]
#[ts(export, export_to = "../../src/bindings/")]
pub struct MetadataResponse {
// Keep the caller's durable source URL here. Resolved redirect targets
// can be short-lived signed URLs and must not become download identity.
url: String,
filename: String,
size: String,
@@ -2048,7 +2050,7 @@ async fn fetch_metadata(
}
Ok(MetadataResponse {
url: current_url,
url,
filename,
size: size_str,
size_bytes,