aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/ddg.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-08-10 21:55:15 -0400
committerlolcat <will@lolcat.ca>2025-08-10 21:55:15 -0400
commitcdf958d29333d448f4521f4d2faa2592b58e9b27 (patch)
tree528f2a0ffa789a6f4279d9f54a4a2aaf391f390f /scraper/ddg.php
parent2d63475b07781619e6fb818e08edd51e2fdb041e (diff)
fix wikipedia crash
Diffstat (limited to 'scraper/ddg.php')
-rw-r--r--scraper/ddg.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php
index 9470415..49e0d37 100644
--- a/scraper/ddg.php
+++ b/scraper/ddg.php
@@ -1974,17 +1974,13 @@ class ddg{
if(count($tags) === 0){
- $description = [
+ $description[] = [
"type" => "text",
"value" =>
trim(
$this->fuckhtml
->getTextContent(
- substr(
- $html,
- $start,
- $tag["startPos"] - $start
- ),
+ $html,
true,
false
)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage