Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(html-transformer): bad outName for og:locale:alternate (FIR-2101) (#1597)
Gergő Móricz8389a1a78db7
diff --git a/apps/api/sharedLibs/html-transformer/src/lib.rs b/apps/api/sharedLibs/html-transformer/src/lib.rsindex eb3be8b9e..1e4f83028 100644--- a/apps/api/sharedLibs/html-transformer/src/lib.rs+++ b/apps/api/sharedLibs/html-transformer/src/lib.rs@@ -90,7 +90,7 @@ pub unsafe extern "C" fn extract_metadata(html: *const libc::c_char) -> *mut liblet 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())]));}}}