mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 08:49:03 +08:00
fix(html-transformer): bad outName for og:locale:alternate (FIR-2101) (#1597)
* fix(html-transformer): bad outName for og:locale:alternate * oops
This commit is contained in:
parent
3ec17e2d1a
commit
8389a1a78d
@ -90,7 +90,7 @@ pub unsafe extern "C" fn extract_metadata(html: *const libc::c_char) -> *mut lib
|
|||||||
let attrs = meta.attributes.borrow();
|
let attrs = meta.attributes.borrow();
|
||||||
|
|
||||||
if let Some(content) = attrs.get("content") {
|
if let Some(content) = attrs.get("content") {
|
||||||
if let Some(v) = out.get_mut("og:locale:alternate") {
|
if let Some(v) = out.get_mut("ogLocaleAlternate") {
|
||||||
match v {
|
match v {
|
||||||
Value::Array(x) => {
|
Value::Array(x) => {
|
||||||
x.push(Value::String(content.to_string()));
|
x.push(Value::String(content.to_string()));
|
||||||
@ -98,7 +98,7 @@ pub unsafe extern "C" fn extract_metadata(html: *const libc::c_char) -> *mut lib
|
|||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
out.insert("og:locale:alternate".to_string(), Value::Array(vec! [Value::String(content.to_string())]));
|
out.insert("ogLocaleAlternate".to_string(), Value::Array(vec! [Value::String(content.to_string())]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user