fix invalid sublinks on google scraper

This commit is contained in:
2025-10-21 00:35:20 -04:00
parent ce75cbda81
commit 46e6ed12e3

View File

@@ -953,6 +953,18 @@ class google{
])
);
$url =
$this->unshiturl(
$a["attributes"]["href"]
);
if(
preg_match(
'/^http/',
$url
)
){
if(count($probe) !== 0){
$sublinks[] = [
@@ -965,13 +977,11 @@ class google{
),
"description" => null,
"date" => null,
"url" =>
$this->unshiturl(
$a["attributes"]["href"]
)
"url" => $url
];
}
}
}
$out["web"][] = [
"title" =>