error fixes

This commit is contained in:
Simon
2026-09-08 10:44:25 +00:00
parent 7452dd5aa3
commit e50003a7ea
4 changed files with 20 additions and 11 deletions

View File

@@ -813,11 +813,8 @@ mod tests {
let formats = item.formats.as_ref().expect("formats present");
assert_eq!(formats.len(), 1);
assert_eq!(formats[0].url, "https://coomer.st/data/abc/clip.mp4");
let headers = formats[0]
.http_headers
.as_ref()
.expect("http_headers present");
assert_eq!(headers.get("Referer").map(String::as_str), Some(REFERER));
let headers = formats[0].http_headers_pairs();
assert!(headers.iter().any(|(k, v)| k == "Referer" && v == REFERER));
assert_eq!(item.uploadedAt, Some(1735787045));
}