diff options
| author | lolcat <will@lolcat.ca> | 2025-07-03 19:43:58 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-07-03 19:43:58 -0400 |
| commit | 502f6d12e49afa25e82bd9d1c8418e3956af36bf (patch) | |
| tree | e42063e4b4d26588ee8f62126b2781411afd2b6c /scraper/marginalia.php | |
| parent | a2bc1e6190bab561b7244e2e9bbda994ab0d0d31 (diff) | |
marginalia crash fix
Diffstat (limited to 'scraper/marginalia.php')
| -rw-r--r-- | scraper/marginalia.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scraper/marginalia.php b/scraper/marginalia.php index e62a485..8fcd9fc 100644 --- a/scraper/marginalia.php +++ b/scraper/marginalia.php @@ -317,14 +317,19 @@ class marginalia{ // // Bypass anubis check // + /* if(($anubis_key = apcu_fetch("marginalia_cookie")) === false){ try{ $html = $this->get( $proxy, - "https://old-search.marginalia.nu/" + "https://old-search.marginalia.nu/search", + [ + "query" => $search + ] ); + }catch(Exception $error){ throw new Exception("Failed to get anubis challenge"); @@ -361,7 +366,7 @@ class marginalia{ } apcu_store("marginalia_cookie", $anubis_key); - } + }*/ if($get["npt"]){ @@ -377,7 +382,7 @@ class marginalia{ $proxy, "https://old-search.marginalia.nu/search?" . $params, [], - $anubis_key + //$anubis_key ); }catch(Exception $error){ @@ -408,7 +413,7 @@ class marginalia{ $proxy, "https://old-search.marginalia.nu/search", $params, - $anubis_key + //$anubis_key ); }catch(Exception $error){ |
