aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-09-10 01:09:48 -0400
committerlolcat <will@lolcat.ca>2025-09-10 01:09:48 -0400
commit1b6182bc3cb40d8c8d3bcde1a8632a877225b8d9 (patch)
treef5796474957aba5e1b47a4438195af89b4e0d654
parent1cfeabeb7f27bc280e0317f5444e670e6356cb51 (diff)
now scraping image resolutions on brave
-rw-r--r--scraper/brave.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/scraper/brave.php b/scraper/brave.php
index e6f5908..ed29158 100644
--- a/scraper/brave.php
+++ b/scraper/brave.php
@@ -352,7 +352,6 @@ class brave{
$html = fread($handle, filesize("scraper/brave.html"));
fclose($handle);*/
-
try{
$html =
$this->get(
@@ -1290,13 +1289,13 @@ class brave{
"source" => [
[
"url" => $result["properties"]["url"],
- "width" => null,
- "height" => null
+ "width" => (int)$result["properties"]["width"],
+ "height" => (int)$result["properties"]["height"]
],
[
"url" => $result["thumbnail"]["src"],
- "width" => null,
- "height" => null
+ "width" => (int)$result["thumbnail"]["width"],
+ "height" => (int)$result["thumbnail"]["height"]
]
],
"url" => $result["url"]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage