added greppr support also btw im not dead

This commit is contained in:
lolcat 2024-05-16 17:22:49 -04:00
parent f8d46df1e8
commit 0d98d7839d
14 changed files with 469 additions and 28 deletions

View file

@ -398,12 +398,17 @@ class sc{
if($token === false){
$js =
$this->get(
$proxy,
"https://a-v2.sndcdn.com/assets/1-c3e4038d.js",
[]
);
try{
$js =
$this->get(
$proxy,
"https://a-v2.sndcdn.com/assets/1-c3e4038d.js",
[]
);
}catch(Exception $error){
throw new Exception("Failed to fetch search token");
}
preg_match(
'/client_id=([^"]+)/',