mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-06-27 00:41:33 +00: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();
|
||||
|
||||
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 {
|
||||
Value::Array(x) => {
|
||||
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!(),
|
||||
}
|
||||
} 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